1package test.override; 2 3import org.testng.annotations.Test; 4 5public class OverrideSampleTest { 6 7 @Test(groups = "goodGroup") 8 public void good() { 9 } 10 11 @Test(groups = "badGroup") 12 public void bad() { 13 throw new RuntimeException("Should not happen"); 14 } 15} 16