// -----------------------------------------------------------
Mapper mapper = getNewMapper(new String[]{"customfactorymapping.xml"});
TestObjectPrime prime = mapper.map(testDataFactory.getInputGeneralMappingTestObject(), TestObjectPrime.class);
TestObject source = mapper.map(prime, TestObject.class);
// The following asserts will verify that the ClassMap beanFactory attr gets applied to both classes
assertNotNull("created by factory name should not be null", prime.getCreatedByFactoryName());
assertNotNull("created by factory name should not be null", source.getCreatedByFactoryName());
assertEquals(SampleCustomBeanFactory.class.getName(), prime.getCreatedByFactoryName());