private static boolean hasAnnotation(Annotation[] annotations, String annotationCanonicalName) {
    for (Annotation annotation : annotations) {
      if (annotationCanonicalName.equalsIgnoreCase(
          annotation.annotationType().getCanonicalName())) {
        return true;
      }
    }
    return false;
  }
Get the current test name in a standard JUnit3 or JUnit4 test, or "unknown" if we couldn't
detect it.
core/src/main/java/com/facebook/testing/screenshot/internal/TestNameDetector.java