DiseaseInheritanceCache implements ResourceParser { public boolean isEmpty() { return diseaseInheritanceModeMap == null || diseaseInheritanceModeMap.isEmpty(); } DiseaseInheritanceCache(); @Override void parseResource(Resource resource, Path inDir, Path outDir); InheritanceMode getInheritanceMode(Integer diseaseId); boolean isEmpty();  }
@Test public void testIsEmptyFalse() { assertThat(instance.isEmpty(), is(false)); }
@Test public void testIsEmptyTrue() { DiseaseInheritanceCache emptyCache = new DiseaseInheritanceCache(); assertThat(emptyCache.isEmpty(), is(true)); }