MvStoreUtil { public static MVMap<AlleleKey, AlleleProperties> openAlleleMVMap(MVStore mvStore) { Objects.requireNonNull(mvStore); if (!mvStore.hasMap(ALLELE_MAP_NAME)) { logger.warn("MVStore does not contain map '{}' - creating new map instance.", ALLELE_MAP_NAME); } MVMap<AlleleKey, AlleleProperties> map = mvStore.openMap(ALLELE_MAP_NAME, MvStoreUtil.alleleMapBuilder()); if (!map.isEmpty()) { logger.debug("MVMap '{}' opened with {} entries", ALLELE_MAP_NAME, map.size()); } return map; } private  MvStoreUtil(); static MVMap<AlleleKey, AlleleProperties> openAlleleMVMap(MVStore mvStore); static MVMap.Builder<AlleleKey, AlleleProperties> alleleMapBuilder();  }
@Test public void openAlleleMVMap() { MVStore mvStore = new MVStore.Builder().open(); MVMap<AlleleKey, AlleleProperties> map = MvStoreUtil.openAlleleMVMap(mvStore); assertThat(map.isEmpty(), is(true)); assertThat(mvStore.hasMap("alleles"), is(true)); }