BuildToolClassLoaderFactory { public static Path getDependenciesPath(Path baseDirectory, BuildToolType buildToolType) { switch (buildToolType) { default: case MAVEN: return getTargetDirectory(baseDirectory).resolve("plugin-generator").resolve("data").resolve("lib"); } }  static ClassLoader getClassLoader(Path baseDirectory, BuildToolType buildToolType); static Path getClassesPath(Path baseDirectory, BuildToolType buildToolType); static Path getDependenciesPath(Path baseDirectory, BuildToolType buildToolType);  }
@Test public void testGetDependenciesPath() throws Exception { assertThat(BuildToolClassLoaderFactory.getDependenciesPath(BASE_DIRECTORY, buildToolType), equalTo(correctDependenciesPath)); }