Method method = aClass.getMethod("testSomeTest"); TestMethod testMethod = new TestMethod(method, aClass); return new HasClassAnnotation(expectedClassification).apply(testMethod);
assertFalse(classHasAnnotation(NonSmokeTestExample.class, Smoke.class));
assertTrue(classHasAnnotation(SmokeTestExample.class, Smoke.class));