@Test
public void testGetConvertedObjectMap() throws Exception {

    Results r = getEmployeesAndAddresses();
    Assert.assertEquals("Results: " + r, 2, r.size());
    List<String> classKeys = new ArrayList<String>();
    classKeys.add("name");
    InterMineBag imb = new InterMineBag("Fred", "Employee", "Test bag", new Date(),
                                        BagState.CURRENT, os, null, uosw, classKeys);
    imb.addIdToBag(((Employee) ((List) r.get(0)).get(0)).getId(), "Employee");
    imb.addIdToBag(((Employee) ((List) r.get(1)).get(0)).getId(), "Employee");
    Map expected = new HashMap();
    expected.put(((List) r.get(0)).get(0), Collections.singletonList(((List) r.get(0)).get(1)));
    expected.put(((List) r.get(1)).get(0), Collections.singletonList(((List) r.get(1)).get(1)));
    Map<InterMineObject, List<InterMineObject>> got =
            TypeConverter.getConvertedObjectMap(conversionTemplates, Employee.class, Address.class, imb, os);
    Assert.assertEquals(expected, got);
}