Convert { public static String shortName(String fullName) { return fullName.substring(fullName.lastIndexOf('.') + 1); } 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 shortName() { assertThat(Convert.shortName("org")).isEqualTo("org"); assertThat(Convert.shortName("org.example")).isEqualTo("example"); assertThat(Convert.shortName("org.example.MyClass$InnerClass")).isEqualTo("MyClass$InnerClass"); }