Map<String, String> nested2 = newInstance(HashMap.class);
nested2.put("field1", "mapnestedfield1value");
nested2.put("field2", "mapnestedfield2value");
SimpleObj src = newInstance(SimpleObj.class);
src.setNested2(nested2);
SimpleObjPrime result = mapper.map(src, SimpleObjPrime.class);
assertNull(result.getNested2().getField1());// field exclude in mappings file
assertEquals(nested2.get("field2"), result.getNested2().getField2());
}