### Question:
RoleMappingServiceImpl implements RoleMappingService, PostConstruct { @Override public RoleMappingService.RoleDeploymentContext findOrCreateDeploymentContext(String appContext) { checkServiceAvailability(); return provider.findOrCreateDeploymentContext(appContext); }  @Override void initialize(SecurityConfiguration securityServiceConfiguration); @Override boolean isUserInRole(String appContext, Subject subject, URI resource, String role); @Override boolean isUserInRole(String appContext, AzSubject subject, AzResource resource, String role); @Override RoleMappingService.RoleDeploymentContext findOrCreateDeploymentContext(String appContext); @Override void postConstruct();  }### Answer:
@Test public void testFindOrCreateDeploymentContext() throws Exception { assertSame( "NOT_INITIALIZED", NOT_INITIALIZED, impl.getInitializationState() ); try { impl.findOrCreateDeploymentContext("test"); fail( "Expected fail not initialized." ); } catch ( RuntimeException e ) { } assertSame("NOT_INITIALIZED", NOT_INITIALIZED, impl.getInitializationState()); assertNotNull("getReasonInitializationFailed", impl.getReasonInitializationFailed()); }