### Question:
JavaIdentifierUtils { public static int getJavaClassNestingLevel(String javaClassName) { return CharMatcher.anyOf("$").countIn(javaClassName); }  static String getJavaClassSimpleName(String javaClassName); static boolean isInnerClass(String javaClassName); static boolean isValidClassName(String className); static int getJavaClassNestingLevel(String javaClassName); static boolean isValidConstantName(String fieldName); static String getPackageName(String javaClassName); static boolean isJavaCoreClass(String javaClassName); static boolean hasSuperclassOrImplementsInterface(Class<?> javaClass, String superJavaClassOrInterfaceName); static Set<String> removeInnerClassesAndInvalidClassNames(Set<String> javaClassNames); static Set<String> javaClassNamesToPackages(Set<String> javaClassNames); static Set<String> removeJavaCoreClassNames(Set<String> javaClassNames);  }### Answer:
@Test public void getJavaClassNestingLevel() { assertEquals(JavaIdentifierUtils.getJavaClassNestingLevel("Bla$Test"), 1); assertEquals(JavaIdentifierUtils.getJavaClassNestingLevel("Bla$Test$Inner"), 2); assertEquals(JavaIdentifierUtils.getJavaClassNestingLevel("Bla"), 0); assertEquals(JavaIdentifierUtils.getJavaClassNestingLevel("dummy.Bla"), 0); }