@@ -0,0 +1,2525 @@
+package edu.kit.ipd.sdq.vitruvius.applications.pcmjava.reconstructionintegration.tests.correspondence;%0A%0Aimport java.util.Collections;%0A%0Aimport org.eclipse.emf.ecore.util.EcoreUtil;%0Aimport org.emftext.language.java.classifiers.Class;%0Aimport org.emftext.language.java.containers.CompilationUnit;%0Aimport org.emftext.language.java.containers.Package;%0Aimport org.junit.Test;%0Aimport org.palladiosimulator.pcm.repository.BasicComponent;%0Aimport org.palladiosimulator.pcm.repository.RepositoryComponent;%0Aimport org.palladiosimulator.pcm.repository.RepositoryPackage;%0A%0Aimport edu.kit.ipd.sdq.vitruvius.applications.pcmjava.reconstructionintegration.tests.BasicCorrespondenceTest;%0Aimport edu.kit.ipd.sdq.vitruvius.framework.util.datatypes.VURI;%0A%0A/**%0A * Class for testing correspondences between PCM components and Java classes.%0A */%0Apublic class ComponentCorrespondenceTest extends BasicCorrespondenceTest %7B%0A%0A    /**%0A     * Test rename basic component.%0A     *%0A     * @throws Throwable%0A     *             the throwable%0A     */%0A    @Test%0A    public void testRenameBasicComponent() throws Throwable %7B%0A%0A        // Get a component and rename it%0A        this.changeRecorder.beginRecording(VURI.getInstance(pcmRepo.eResource()), Collections.singletonList(this.pcmRepo));%0A        final BasicComponent basicComponent = (BasicComponent) EcoreUtil.getObjectByType(this.pcmRepo.eContents(),%0A                RepositoryPackage.eINSTANCE.getBasicComponent());%0A        basicComponent.setEntityName(%22ComponentRenamed%22);%0A%0A        // Execute the synchronization and check if the source code updated%0A        // correctly%0A        this.triggerSynchronization(VURI.getInstance(basicComponent.eResource()));%0A        this.assertBasicComponentCorrespondences(basicComponent);%0A    %7D%0A%0A    /**%0A     * Checks if the corresponding jamopp elements (Comp.Unit, Class and package-info) of the given%0A     * pcm component can be retrieved from the %7B@link CorrespondenceModel%7D.%0A     *%0A     * @param basicComponent%0A     *            the basic component%0A     * @throws Throwable%0A     *             the throwable%0A     */%0A    @SuppressWarnings(%22unchecked%22)%0A    private void assertBasicComponentCorrespondences(final RepositoryComponent basicComponent) throws Throwable %7B%0A        this.assertCorrespondnecesAndCompareNames(basicComponent, 3,%0A                new java.lang.Class%5B%5D %7B CompilationUnit.class, Package.class, Class.class %7D, new String%5B%5D %7B%0A                        basicComponent.getEntityName() + %22Impl%22, basicComponent.getEntityName(), %22package-info.java%22 %7D);%0A%0A    %7D%0A%0A%7D%0A

Correct a namespace.