@Test
public void testExtractClassNameFromQualifiedName() {

  assertThat(
          ReferencedClassesParser.extractClassNameFromQualifiedName(
              "ExternalClassA.ExternalAInnerClass"))
      .isEqualTo("ExternalClassA");
  assertThat(
          ReferencedClassesParser.extractClassNameFromQualifiedName(
              "com.google.common.ExternalClassA.ExternalAInnerClass"))
      .isEqualTo("com.google.common.ExternalClassA");
  assertThat(ReferencedClassesParser.extractClassNameFromQualifiedName("innerTemplate"))
      .isEqualTo("");
}