public void categoryFilterLeavesOnlyMatchingMethods()
throws InitializationError, NoTestsRemainException {
CategoryFilter filter = CategoryFilter.include(SlowTests.class);
BlockJUnit4ClassRunner runner = new BlockJUnit4ClassRunner(A.class);
filter.apply(runner);
assertEquals(1, runner.testCount());
}
public static class OneFastOneSlow {
@Category(FastTests.class)
@Test