@Test
public void testGetFieldValues() throws Exception {

    Properties config = new Properties();
    config.put("max.field.value", "10");
    config.put("org.intermine.model.testmodel.Employee.fields", "age name");
    config.put("org.intermine.model.testmodel.Manager.fields", "title");
    ObjectStore os = ObjectStoreFactory.getObjectStore("os.unittest");
    ObjectStoreSummary oss = new ObjectStoreSummary(os, config);
    Assert.assertEquals(Arrays.asList(new Object [] {"10", "20", "30", "40", "50", "60"}),
                 oss.getFieldValues("org.intermine.model.testmodel.Employee", "age"));
    Assert.assertEquals(Arrays.asList(new Object [] {"Mr.", null}),
                 oss.getFieldValues("org.intermine.model.testmodel.Manager", "title"));
    // null because Bank.name isn't in the objectstoresummary.config.properties file
    Assert.assertNull(oss.getFieldValues("org.intermine.model.testmodel.Bank", "name"));
    // null because max.field.values exceeded
    Assert.assertNull(oss.getFieldValues("org.intermine.model.testmodel.Thing", "id"));
    Assert.assertNull(oss.getFieldValues("org.intermine.model.InterMineObject", "id"));
}