### Question:
SoapDeploymentConfig extends DeploymentConfig { public static SoapDeploymentConfigBuilder builder() { return new SoapDeploymentConfigBuilder(); } private  SoapDeploymentConfig(SoapDeploymentConfigBuilderBase<?> builder); static SoapDeploymentConfigBuilder builder(); QName getService(); QName getPort(); String getAmDeploymentUrl(); String getWsdlLocation(); @Override String toString(); @Override boolean equals(Object other); @Override int hashCode(); JsonValue toJson(); static SoapDeploymentConfig fromJson(JsonValue json); Map<String, Set<String>> marshalToAttributeMap(); static SoapDeploymentConfig marshalFromAttributeMap(Map<String, Set<String>> attributeMap); static final String CUSTOM_SOAP_STS_WSDL_FILE_INDICATOR; }### Answer:
@Test(expectedExceptions = NullPointerException.class) public void testRejectIfNullIfAuthTargetMappingNotSet() { SoapDeploymentConfig.builder() .realm("a") .amDeploymentUrl("deployment_url") .uriElement("b") .build(); }
@Test(expectedExceptions = NullPointerException.class) public void testRejectIfNullIfAMDeploymentUrlNotSet() { AuthTargetMapping atm = AuthTargetMapping.builder() .addMapping(TokenType.USERNAME, "module", "untmodule") .build(); SoapDeploymentConfig.builder() .realm("a") .uriElement("b") .authTargetMapping(atm) .build(); }