@Test
void usedClassCount() throws IOException {

    final CodeClass clazz = parse(Path.testClass("ExampleConcreteClass"));
    assertCollectionEquals(toString(clazz.usedClassCounts()),
            "java.lang.String 3", "java.lang.Exception 2", "java.io.IOException 1", "java.io.File 2",
            "java.math.BigDecimal 1", "java.util.Vector 1", "java.util.jar.JarFile 1", "java.net.URL 1",
            "java.awt.im.InputContext 1", "java.awt.geom.AffineTransform 1",
            "java.awt.image.renderable.ContextualRenderedImageFactory 1", "java.awt.Checkbox 1",
            "java.rmi.RemoteException 1", "java.sql.Statement 1",
            "java.text.NumberFormat 1",
            "org.junit.jupiter.api.Tag 1", "org.junit.jupiter.api.Disabled 1", "org.junit.jupiter.api.Test 1",
            model("p2.ExampleEnum 1"), model("ExampleAbstractClass 2"), model("p1.ExampleInnerAnnotation 1"),
            model("ExampleConcreteClass$ExampleInnerClass 1"), model("ExampleAnnotation 1"));
}