@Test
void loadProperties_shouldThrowIOE_ifPluginsDirNotExist() {

  Path notExistingPluginsDir = Paths.get(TEST_DIRECTORY.getAbsolutePath(), "not-existing-plugins-dir");
  IOException exception = assertThrows(IOException.class, () -> PropertyLoader.loadProperties(notExistingPluginsDir.toFile()));
  assertLinesMatch(singletonList("^Directory '.*' not found$"), singletonList(exception.getMessage()));
}