assertAnnotationFiltering(runner);
}
private void assertAnnotationFiltering(JUnit38ClassRunner runner) {
Description d = runner.getDescription();
assertEquals(2, d.testCount());
for (Description methodDesc : d.getChildren()) {
if (methodDesc.getMethodName().equals("testAnnotated")) {
assertNotNull(methodDesc.getAnnotation(MyAnnotation.class));
} else {
assertNull(methodDesc.getAnnotation(MyAnnotation.class));