### Question:
ScanConfigService { public NamePatternIdprovider getNamePatternIdProvider(MappingIdentifier identifier) { return getNamePatternIdProvider(identifier.getId()); }  @UseCaseAdministratorUpdatesMappingConfiguration(@Step(number = 6, name = "Service call", description = "Checks if current mappings in DB lead to a new scan configuration.")) void refreshScanConfigIfNecessary(); NamePatternIdprovider getNamePatternIdProvider(MappingIdentifier identifier); @Deprecated NamePatternIdprovider getNamePatternIdProvider(String namePatternMappingId);  }### Answer:
@Test public void not_initialized_returns_fallback_provider() { NamePatternIdprovider provider = serviceToTest.getNamePatternIdProvider("xyz"); assertNotNull(provider); assertEquals(null,provider.getIdForName("a-go-project-1")); }