@Test
public void testMapWithList() {
mapper = getMapper("knownFailures.xml");
Room room = new Room();
room.setRoomName("some room name");
House house = new House();
house.setHouseName("some house name");
house.setBathrooms(new ArrayList(Arrays.asList("master", "spare")));
house.setRoom(room);
Map<String, Object> result = mapper.map(house, HashMap.class);
assertNotNull("bathrooms should exist", result.containsKey("bathrooms"));
assertEquals("wrong bathrooms found", house.getBathrooms(), result.get("bathrooms"));
}