}
@Test(expected = ClassCastException.class)
public void passingNonStringToErasureYieldsException() {
Predicate p = new StringStartsWithIgnoreCase("a");
p.accept(new Object());
}
@Test
public void testingContainedNeedleYieldsTrue() {
Assert.assertTrue(new StringStartsWithIgnoreCase("a").accept("A"));