Set<String> getPackageIdentifiersFromComponentOf(JavaClass javaClass) {
        return getPackageIdentifiersFromComponentOf(getComponentOf(javaClass));
    }
@Test
    public void get_package_identifier_associated_with_class() {
        String expectedPackageIdentifier = SomeOriginClass.class.getPackage().getName().replaceAll(".*\\.", "..");
        JavaClassDiagramAssociation javaClassDiagramAssociation = createAssociation(TestDiagram.in(temporaryFolder)
                .component("A").withStereoTypes(expectedPackageIdentifier)
                .component("B").withStereoTypes("..noclasshere")
                .write());

        JavaClass clazz = importClassWithContext(SomeOriginClass.class);

        assertThat(javaClassDiagramAssociation.getPackageIdentifiersFromComponentOf(clazz))
                .as("package identifiers of " + clazz.getName())
                .containsOnly(expectedPackageIdentifier);
    }