### Question:
ConfigGroupsMigrationService { public void groupSystemConfigGroups() { try { startBatch(); system.out().println("Moving existing configurations to their type directories..."); groupConfigGroupsByType(); system.out().println("Moving existing repositories configurations to their space directories..."); groupRepositoryConfigGroupsBySpace(); } finally { endBatch(); } } ConfigGroupsMigrationService(); @Inject  ConfigGroupsMigrationService(final @Named("system") Repository systemRepository,
                                        final ConfigGroupMarshaller marshaller,
                                        final @Named("configIO") IOService ioService,
                                        final @Named("systemFS") FileSystem fs,
                                        final SystemAccess system,
                                        final User identity); void groupSystemConfigGroups();  }### Answer:
@Test public void groupSystemConfigGroupsTest() { createConfigGroupsWithOldConfigurationService(); migrateConfigGroups(); checkConfigGroupsWithNewConfigurationService(); }