BuildToolClassLoaderFactory { public static Path getClassesPath(Path baseDirectory, BuildToolType buildToolType) { switch (buildToolType) { default: case MAVEN: return getTargetDirectory(baseDirectory).resolve("classes"); } }  static ClassLoader getClassLoader(Path baseDirectory, BuildToolType buildToolType); static Path getClassesPath(Path baseDirectory, BuildToolType buildToolType); static Path getDependenciesPath(Path baseDirectory, BuildToolType buildToolType);  }
@Test public void testGetClassesPath() throws Exception { assertThat(BuildToolClassLoaderFactory.getClassesPath(BASE_DIRECTORY, buildToolType), equalTo(correctClassesPath)); }