private Method getMethod(Method parentMethod, List<Method> testMethods) {
for (Method method : testMethods) {
Test test = method.getAnnotation(Test.class);
if (parentMethod == null) {
if (test.parentMethod().equals(""))
return method;
} else {
if (test.parentMethod().equals(parentMethod.getName()))
return method;
}