### Question:
AuthorizationServiceImpl implements AuthorizationService, PostConstruct { @Override public PolicyDeploymentContext findOrCreateDeploymentContext( final String appContext) { checkServiceAvailability(); return provider.findOrCreateDeploymentContext(appContext); }  @Override void initialize(final SecurityConfiguration securityServiceConfiguration); @Override boolean isPermissionGranted(
        final Subject subject, final Permission permission); @Override boolean isAuthorized(Subject subject, URI resource); @Override boolean isAuthorized(final Subject subject, final URI resource, final String action); @Override AzResult getAuthorizationDecision(
            final AzSubject subject,
            final AzResource resource,
            final AzAction action); @Override AzSubject makeAzSubject(final Subject subject); @Override AzResource makeAzResource(final URI resource); @Override AzAction makeAzAction(final String action); @Override PolicyDeploymentContext findOrCreateDeploymentContext(
            final String appContext); @Override void postConstruct(); @Override boolean appendAttributeResolver(AzAttributeResolver resolver); @Override void setAttributeResolvers(List<AzAttributeResolver> resolverList); @Override List<AzAttributeResolver> getAttributeResolvers(); @Override boolean removeAllAttributeResolvers();  }### Answer:
@Test public void testFindOrCreateDeploymentContext() throws Exception { assertSame( "NOT_INITIALIZED", NOT_INITIALIZED, impl.getInitializationState() ); try { impl.findOrCreateDeploymentContext("foo"); fail( "Expected fail not initialized." ); } catch ( RuntimeException e ) { } assertSame("NOT_INITIALIZED", NOT_INITIALIZED, impl.getInitializationState()); assertNotNull("getReasonInitializationFailed", impl.getReasonInitializationFailed()); }