SpaceScopedResolutionStrategySupplier implements Supplier<PreferenceScopeResolutionStrategyInfo> { @Override public PreferenceScopeResolutionStrategyInfo get() { final String scopeKey = organizationalUnit != null ? organizationalUnit.getIdentifier() : null; return scopeResolutionStrategies.getSpaceInfoFor(scopeKey); } SpaceScopedResolutionStrategySupplier(); @Inject  SpaceScopedResolutionStrategySupplier(final WorkbenchPreferenceScopeResolutionStrategies scopeResolutionStrategies); void onWorkspaceProjectContextChangeEvent(@Observes final WorkspaceProjectContextChangeEvent event); @Override PreferenceScopeResolutionStrategyInfo get();  }
@Test public void getWithoutOrganizationalUnitTest() { final PreferenceScopeResolutionStrategyInfo strategyInfo = strategySupplier.get(); verify(scopeResolutionStrategies).getSpaceInfoFor(null); }