@Test
public void shouldAcceptEnumeratedIntegerPart() {

    final Predicate<Number> predicate = parse("i = 0,1");
    assertTrue(predicate.test(0));
    assertTrue(predicate.test(0.1));
    assertTrue(predicate.test(1));
    assertTrue(predicate.test(1.5));
    assertFalse(predicate.test(-1));
    assertFalse(predicate.test(2));
    assertFalse(predicate.test(Integer.MAX_VALUE));
}