Class trait2 = kb.getFactType("org.drools.compiler.trait.test","Role").getFactClass();
assertNotNull( trait);
TraitProxy proxy = (TraitProxy) traitBuilder.getProxy(imp, trait);
Thing thing = traitBuilder.getProxy(imp, Thing.class);
TraitableBean core = (TraitableBean) proxy.getObject();
TraitProxy proxy2 = (TraitProxy) traitBuilder.getProxy(imp, trait);
Thing thing2 = traitBuilder.getProxy(imp, Thing.class);
assertSame(proxy,proxy2);
assertSame(thing,thing2);
assertEquals(2, core.getTraits().size());