@Test
public void testAsInt() {

    assertEquals(1, filters.asInt(ff.literal(1)));
    assertEquals(1, filters.asInt(ff.literal("1")));
    assertEquals(Filters.NOTFOUND, filters.asInt(ff.property("fred")));
}