@Test
public void existsTest() throws IOException {

    MatpowerModel model = MatpowerModelFactory.create118();
    Path matpowerBinCase = tmpDir.resolve(model.getCaseName() + ".mat");
    MatpowerWriter.write(model, matpowerBinCase);
    assertTrue(new MatpowerImporter().exists(new FileDataSource(tmpDir, model.getCaseName())));
    assertFalse(new MatpowerImporter().exists(new FileDataSource(tmpDir, "doesnotexist")));
}