private static boolean isPublicTestMethod(Method m){
  return isTestMethod(m) && Modifier.isPublic(m.getModifiers());
}

private static boolean isPublicTestMethod ( Method m ) { return isTestMethod ( m ) && Modifier . isPublic ( m . getModifiers ( ) ) ; }
check whether this is a public test method .
