cache.add(obj);
}
};
final NutsProcessor meta = interpreter.createMetaInterpreter();
meta.getContainer().registerValue(l);
meta.processResource("tests/jfun/yan/xml/nuts/listeners.xml");
interpreter.loadNutsFromContainer(meta.getContainer());
interpreter.processFile("test/yan/test_pluggable_declarativeness.xml");
final List instances = yan.getInstances();
assertEquals(1, cache.size());
assertSame(cache.get(0), instances.get(0));