final tests.jfun.yan.testmodel.ICache icache = ifactory.createCache("tom", 10);
assertEquals(MyCache.class, icache.getClass());
assertEquals("tom", icache.getName());
assertEquals(10, icache.getCapacity());
try{
yan.verify();
fail("should have failed with IrresolveableArgumentException");
}
catch(IrresolveableArgumentException e){
assertTraceSize(e, 3);
assertEntry(e, 1, "tests.jfun.yan.testmodel.ICacheFactory");