public class ApiTests extends TemplateTestCase {
public void testCache() {
DefaultEvaluationCache cache = new DefaultEvaluationCache();
cache.cache(3, 1, 2, 5);
Assert.assertEquals(3, cache.lookup(1, 2, 5));
Assert.assertEquals(null, cache.lookup(1, 2, 6));
cache.cache(8, new Object[] { 3,4,7}, 9);
Assert.assertEquals(8, cache.lookup(new Object[] { 3,4,7}, 9));
Assert.assertEquals(null, cache.lookup(new Object[] { 3,5,7}, 9));
}