@Test
public void testNoReadMethodSameClassTypes() throws Exception {
// If the field doesnt have a getter/setter, dont add it is a default field to be mapped.
mapper = getMapper(new String[] { "dozerBeanMapping.xml" });
NoReadMethod src = newInstance(NoReadMethod.class);
src.setNoReadMethod("somevalue");
NoReadMethod dest = mapper.map(src, NoReadMethod.class);
assertNull("field should be null because no read method exists for field", dest.getXXXXX());
}