@Test public void exists() { boolean bool; String path; try { path = "file:/home/lambert/test/prod0"; bool = dao.exists(new URL(path)); Assert.assertTrue(bool, "product with path '" + path + "' should be" + "exists"); path = "file:/home/lambert/test/product999"; bool = dao.exists(new URL(path)); Assert.assertFalse(bool, "product with path '" + path + "' should be npt exists"); } catch (MalformedURLException e) { Assert.fail("Error: malformed URL", e); } }