Convert { public static String bytecodeName(String fullName) { return fullName.replace('.', '/'); } private  Convert(); static String packagePart(String fullName); static String shortName(String fullName); static String flatName(String bytecodeName); static String bytecodeName(String fullName); static String enclosingClassName(String shortName); static String innerClassName(String enclosingClassName, String shortName); static String fullName(String packagePart, String className);  }
@Test void bytecodeName() { assertThat(Convert.bytecodeName("org.example.MyClass")).isEqualTo("org/example/MyClass"); assertThat(Convert.bytecodeName("org.example.MyClass$InnerClass")).isEqualTo("org/example/MyClass$InnerClass"); }