@SuppressWarnings("unchecked") // root is an ArrayList of TestObjectCreationFactory
ArrayList<ObjectCreationFactoryTestImpl> list = (ArrayList<ObjectCreationFactoryTestImpl>) obj;
assertEquals("List should contain only the factory object", list.size() , 1);
ObjectCreationFactoryTestImpl factory = list.get(0);
assertEquals("Object create not called(1)", factory.called , true);
assertEquals(
"Attribute not passed (1)",
factory.attributes.getValue("one"),
"good");