### Question:
ClasspathHelper { static String fullClasspathStringFor( ClassLoader classLoader ) { Set<String> classpathElements = fullClasspathFor( classLoader ); return formClasspathString( classpathElements ); } private  ClasspathHelper();   }### Answer:
@Test public void shouldReturnCorrectClasspathString() throws Exception { ClassLoader parent = new URLClassLoader( urls( "file: ClassLoader child = new URLClassLoader( urls( "file: String classpath = fullClasspathStringFor( child ); assertThat( classpath, containsString( pathTo( "bar" ) + File.pathSeparator + pathTo( "foo" ) ) ); }