ClassUtils { public static String getClassName(String fqClassName) { if (fqClassName == null) { return null; } int firstChar = fqClassName.lastIndexOf('.') + 1; if (firstChar > 0) { fqClassName = fqClassName.substring(firstChar); } return fqClassName; }  static String getFullyQualifiedNameForInternalName(String internalName); static String getClassName(String fqClassName); static String getClassNameForInternalName(String internalName);  }
@Test public void testGetClassNameHappyPath() { String simpleClassName = getClassName("io.neow3j.blah.Test"); assertThat(simpleClassName, is("Test")); }
@Test public void testGetClassNameNoClass() { String simpleClassName = getClassName("io.neow3j.blah."); assertThat(simpleClassName, is("")); }
@Test public void testGetClassNameEmpty() { String simpleClassName = getClassName(""); assertThat(simpleClassName, is("")); }