@Test
public void testNoWriteMethodSameClassTypes() throws Exception {
// When mapping between identical types, if the field doesnt have a getter/setter, dont
// add it is a default field to be mapped.
mapper = getMapper(new String[] { "dozerBeanMapping.xml" });
NoWriteMethod src = newInstance(NoWriteMethod.class);
src.setXXXXXX("someValue");
mapper.map(newInstance(NoReadMethod.class), NoReadMethod.class);
NoWriteMethod dest = mapper.map(src, NoWriteMethod.class);
assertNull("field should be null because no write method exists for field", dest.getNoWriteMethod());
}