Set<Class<?>> exclusions= new HashSet<Class<?>>(2);
Collections.addAll(exclusions, SlowTests.class, FastTests.class);
CategoryFilter exclude = CategoryFilter.categoryFilter(true, null, true, exclusions);
Request baseRequest= Request.aClass(OneOfEach.class);
Result result= new JUnitCore().run(baseRequest.filterWith(exclude));
assertTrue(result.wasSuccessful());
assertEquals(1, result.getRunCount());
}
@Test
public void testCountWithMultipleIncludeFilter() throws Throwable {