### Question:
AbstractProperties { protected void checkFolders(Path... folders) throws FileNotFoundException { if (folders != null) { for (Path folder : folders) { if (!Files.exists(folder)) { throw new FileNotFoundException("necessary Folder '" + folder.toString() + "' does not exists!"); } } } }    }### Answer:
@Test public void testCheckFolders() throws Exception { testling.checkFolders(Paths.get(SAKULI_HOME_FOLDER_PATH), Paths.get(TEST_FOLDER_PATH)); }
@Test(expectedExceptions = FileNotFoundException.class, expectedExceptionsMessageRegExp = "necessary Folder 'notValidFolderPath' does not exists!") public void testCheckFoldersException() throws Exception { testling.checkFolders(Paths.get("notValidFolderPath")); }