dependsOnMethods attribute in the @Test annotation.
A method name is considered illegal if it can't be resolved into a valid, accessible @Test annotated method in the current class
or any of its parent classes.
Example:
public class SampleTest {
@Test(dependsOnMethods = "testSpellignError")
public void testSample() {}
@Test
public void testSpellingError(){}
}