### Question:
ArchetypePreferencesManager { public void initializeCustomPreference(final String identifier) { final PreferenceScopeResolutionStrategyInfo info = workbenchPreferenceScopeResolutionStrategies.getSpaceInfoFor(identifier); archetypePreferences.load(info); archetypePreferences.save(info); } ArchetypePreferencesManager(); @Inject  ArchetypePreferencesManager(final PreferenceScopeFactory scopeFactory,
                                       final WorkbenchPreferenceScopeResolutionStrategies workbenchPreferenceScopeResolutionStrategies,
                                       final ArchetypePreferences archetypePreferences,
                                       final OrganizationalUnitService ouService); void addArchetype(final String archetype); void removeArchetype(final String archetype); void setDefaultArchetype(final String archetype); void initializeCustomPreferences(); void initializeCustomPreference(final String identifier); void enableArchetype(final String archetype,
                                final boolean isEnabled,
                                final boolean customIncluded);  }### Answer:
@Test public void initializeCustomPreferenceTest() { archetypePreferencesManager.initializeCustomPreference("identifier"); verify(workbenchPreferenceScopeResolutionStrategies).getSpaceInfoFor(anyString()); verify(archetypePreferences).load(any(PreferenceScopeResolutionStrategyInfo.class)); verify(archetypePreferences).save(any(PreferenceScopeResolutionStrategyInfo.class)); }