fruitNames.add(((Apple) top.getObjectArrayToSet()[0]).getName());
fruitNames.add(((Apple) top.getObjectArrayToSet()[1]).getName());
assertTrue(fruitNames.remove("orange3"));
assertTrue(fruitNames.remove("orange4"));
Apple apple = newInstance(Apple.class);
apple.setName("apple1");
Apple[] appleArray = { apple };
top.setSetToArrayWithValues(appleArray);
// now map back
Apple apple2 = newInstance(Apple.class);
apple2.setName("apple2");
TestObject toDest = newInstance(TestObject.class);
Set<Apple> hashSet = newInstance(HashSet.class);
hashSet.add(apple2);
toDest.setSetToArrayWithValues(hashSet);
mapper.map(top, toDest);