@Test
public void testAnonClassInInterfaceInit() {

  try {
    final JavaFileAnalyzer2 jfa =
        (JavaFileAnalyzer2)
            FileAnalyzerFactory.buildFileAnalyzer(
                new File("./src/test/java/org/eclipse/steady/java/test/ConfigurationKey.java"));
    final Map<ConstructId, Construct> constructs = jfa.getConstructs();
    // The parsing should produce the following 5 elements:
    final JavaPackageId p = new JavaPackageId("org.eclipse.steady.java.test");
    final JavaClassId anon1 =
        JavaId.parseClassQName("org.eclipse.steady.java.test.ConfigurationKey$1");
    final JavaMethodId anon1_m =
        JavaId.parseMethodQName(
            "org.eclipse.steady.java.test.ConfigurationKey$1.compare(ConfigurationKey,ConfigurationKey)");
    final JavaClassId anon2 =
        JavaId.parseClassQName("org.eclipse.steady.java.test.ConfigurationKey$2");
    final JavaMethodId anon2_m =
        JavaId.parseMethodQName(
            "org.eclipse.steady.java.test.ConfigurationKey$2.compare(ConfigurationKey,ConfigurationKey)");
    // Assertions
    assertEquals(5, constructs.size());
    assertTrue(constructs.containsKey(p));
    assertTrue(constructs.containsKey(anon1));
    assertTrue(constructs.containsKey(anon1_m));
    assertTrue(constructs.containsKey(anon2));
    assertTrue(constructs.containsKey(anon2_m));
  } catch (FileAnalysisException e) {
    e.printStackTrace();
    assertTrue(false);
  }
}