### Question:
PluginListParser { public boolean fileExists(File pluginFile) { if (pluginFile == null) { return false; } if (Files.exists(pluginFile.toPath())) { if (verbose) { System.out.println("Reading in plugins from " + pluginFile + "\n"); } return true; } System.out.println(pluginFile + " file does not exist"); return false; } PluginListParser(boolean verbose); List<Plugin> parsePluginsFromCliOption(String[] plugins); List<Plugin> parsePluginTxtFile(File pluginTxtFile); List<Plugin> parsePluginYamlFile(File pluginYamlFile); boolean fileExists(File pluginFile); static boolean isURL(String url);  }### Answer:
@Test public void fileExistsTest() throws URISyntaxException { assertThat(pluginList.fileExists(null)).isFalse(); File pluginFile = new File(this.getClass().getResource("PluginListParserTest/plugins.yaml").toURI()); assertThat(pluginList.fileExists(pluginFile)).isTrue(); File notExistingFile = new File("/file/that/does/not/exist.yaml"); assertThat(pluginList.fileExists(notExistingFile)).isFalse(); }