when(tuple.get(1)).thenReturn("book/author");
assertEquals("Gambardella, Matthew", xpath.exec(tuple));
assertNotEquals("Someone else", xpath.exec(tuple));
when(tuple.get(1)).thenReturn("book/price");
assertEquals("44.95", xpath.exec(tuple));
assertNotEquals("00.00", xpath.exec(tuple));
}
@Test
public void testCacheFlag() throws Exception {