### Question:
DeploymentConfig { public static DeploymentConfigBuilderBase<?> builder() { return new DeploymentConfigBuilder(); } protected  DeploymentConfig(DeploymentConfigBuilderBase<?> builder); static DeploymentConfigBuilderBase<?> builder(); String getUriElement(); String getRealm(); AuthTargetMapping getAuthTargetMapping(); String getOffloadedTwoWayTlsHeaderKey(); Set<String> getTlsOffloadEngineHostIpAddrs(); @Override String toString(); @Override boolean equals(Object other); @Override int hashCode(); JsonValue toJson(); static DeploymentConfig fromJson(JsonValue json); Map<String, Set<String>> marshalToAttributeMap(); static DeploymentConfig marshalFromAttributeMap(Map<String, Set<String>> attributeMap);  }### Answer:
@Test(expectedExceptions = NullPointerException.class) public void testRejectIfNull() { DeploymentConfig.builder() .realm("a") .uriElement("b") .build(); }
@Test(expectedExceptions = IllegalStateException.class) public void testHeaderSetButNoOffloadIps() { AuthTargetMapping atm = AuthTargetMapping.builder() .addMapping(TokenType.USERNAME, "module", "untmodule") .build(); DeploymentConfig rdc = DeploymentConfig.builder() .realm("a") .uriElement("b") .offloadedTwoWayTLSHeaderKey(CLIENT_CERT) .authTargetMapping(atm) .build(); }