return objectFactory;
}
public void testComponentCreation() throws Exception
{
ObjectFactory objectFactory = createObjectFactory();
DefaultJavaComponent component = new DefaultJavaComponent(objectFactory);
assertNotNull(component.getObjectFactory());
assertEquals(objectFactory, component.getObjectFactory());
assertEquals(Orange.class, component.getObjectFactory().getObjectClass());