void () { Module module = createModule("foo"); ProcessorConfigProfileImpl profile = new ProcessorConfigProfileImpl("foo"); profile.addModuleName("foo"); getConfiguration().addModuleProcessorProfile(profile); assertSame(profile, getConfiguration().getAnnotationProcessingConfiguration(module)); ModuleGroupTestsKt.renameModule(module, "bar"); ProcessorConfigProfile newProfile = getConfiguration().getAnnotationProcessingConfiguration(module); assertNotNull(newProfile); assertEquals("bar", assertOneElement(newProfile.getModuleNames())); }