MvStoreDataSourceLoader { public static MVStore openMvStore(Path mvStoreAbsolutePath) { return new MVStore.Builder() .fileName(mvStoreAbsolutePath.toString()) .readOnly() .open(); } private  MvStoreDataSourceLoader(); static MVStore openMvStore(Path mvStoreAbsolutePath);  }
@Test public void loadsData() { Path mvStorePath = Paths.get("src/test/resources/data/1710_hg19/1710_hg19_variants.mv.db"); MVStore mvStore = MvStoreDataSourceLoader.openMvStore(mvStorePath); assertThat(mvStore, instanceOf(MVStore.class)); }
@Test public void cannotLoadData() { Path mvStorePath = Paths.get("wibble"); assertThrows(IllegalStateException.class, () -> MvStoreDataSourceLoader.openMvStore(mvStorePath)); }