### Question:
RoleMappingServiceImpl implements RoleMappingService, PostConstruct { @Override public boolean isUserInRole(String appContext, Subject subject, URI resource, String role) { if (subject == null) throw new IllegalArgumentException( localStrings.getLocalString("service.subject_null", "The supplied Subject is null.")); if (resource == null) throw new IllegalArgumentException( localStrings.getLocalString("service.resource_null", "The supplied Resource is null.")); return isUserInRole(appContext, makeAzSubject(subject), makeAzResource(resource), role); }  @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 testIsUserRoleNoAzArgsNullArgs() throws Exception { try { impl.isUserInRole("test", null, URI.create("test: "aRole"); fail( "Expected fail illegal argument." ); } catch ( IllegalArgumentException e ) { assertNotNull("Subject null test", e); } try { impl.isUserInRole("test", new Subject(), null, "aRole"); fail( "Expected fail illegal argument." ); } catch ( IllegalArgumentException e ) { assertNotNull("Subject null test", e); } }