public void testCtorFactory() throws Exception{
final jfun.yan.factory.Factory factory = yan.getFactory("foo");
Benchmark bench = new Benchmark("Nuts: Constructor Injection with Factory", LOOP){
public void run() throws Exception {
final Foo foo = (Foo)factory.create();
foo.noop();
}
};
bench.start(true);
}