### Question:
ClassPath { public void add(String classpath) { if (!subPaths.contains(FileUtil.getUnixPath(classpath))) { subPaths.add(FileUtil.getUnixPath(classpath)); } } ClassPath(String classpath); void add(String classpath); void add(ClassPath classpath); List<String> getSubPaths(); String toString(); void addDirAndSubDirs(String path);  }### Answer:
@Test public void addingSamePathTwiceOnlyAddsItOnce() { classpath.add("a"); classpath.add("a"); assertEquals(2, classpath.subPaths.size()); }
@Test public void addingACompleteClasspathAddsAllItsSubpaths() { ClassPath another = new ClassPath("another1"); another.add("another2"); classpath.add(another); assertTrue(classpath.subPaths.contains("another1")); assertTrue(classpath.subPaths.contains("another2")); }