### Question:
ClassFiles { public static String classNameToPath(String className) { return className.replace('.', '/') + ".class"; }  static String classNameToPath(String className); static String pathToClassName(String path);  }### Answer:
@Test public void converting_class_names_to_paths() { assertThat(ClassFiles.classNameToPath("Foo"), is("Foo.class")); assertThat(ClassFiles.classNameToPath("com.example.Foo"), is("com/example/Foo.class")); }