mapper = getMapper(new String[] { "indexMapping.xml" });
Mccoy src = newInstance(Mccoy.class);
src.setStringProperty(String.valueOf(System.currentTimeMillis()));
src.setField2("someValue");
MccoyPrime dest = mapper.map(src, MccoyPrime.class, "usingDestHint");
Set<?> destSet = dest.getFieldValueObjects();
assertNotNull("dest set should not be null", destSet);
assertEquals("dest set should contain 1 entry", 1, destSet.size());
Object entry = destSet.iterator().next();
assertTrue("dest set entry should be instance of FieldValue", entry instanceof FieldValue);
assertEquals("invalid value for dest object", src.getStringProperty(), ((FieldValue) entry).getValue("theKey"));