ObjectStoreSummary { public int getClassCount(String className) { Integer countInteger = classCountsMap.get(className); if (countInteger == null) { throw new RuntimeException("cannot find class count for: " + className); } return countInteger.intValue(); } ObjectStoreSummary(ObjectStore os, Properties configuration);  ObjectStoreSummary(Properties properties); int getMaxValues(); int getClassCount(String className); List<Object> getFieldValues(String className, String fieldName); Set<String> getNullReferencesAndCollections(String className); Map<String, Set<String>> getAllNullReferencesAndCollections(); Set<String> getNullAttributes(String className); Map<String, Set<String>> getAllNullAttributes(); Properties toProperties(); static final int DEFAULT_MAX_VALUES; }
@Test public void testGetCount() throws Exception { ObjectStore os = ObjectStoreFactory.getObjectStore("os.unittest"); ObjectStoreSummary oss = new ObjectStoreSummary(os, new Properties()); Assert.assertEquals(2, oss.getClassCount("org.intermine.model.testmodel.Company")); }