* Test that the value for the {http error status code} property returned by the
* <code>getHttpErrorStatusCode</code> method matches the value parsed from the WSDL.
*/
public void testGetHttpErrorStatusCode()
{
BindingFault bindFault = fBindFaults[0];
HTTPBindingFaultExtensions httpBindFaultExts = (HTTPBindingFaultExtensions)bindFault
.getComponentExtensionContext(HTTPConstants.NS_URI_HTTP);
assertNotNull("The BindingFault does not contain an HTTPBindingFaultExtensions object.",
httpBindFaultExts);
HTTPErrorStatusCode actual = httpBindFaultExts.getHttpErrorStatusCode();
assertNotNull("The value for http error status code was null", actual);
assertEquals("Unexpected value for http error status code.",
123,
actual.getCode().intValue());
bindFault = fBindFaults[1];
httpBindFaultExts = (HTTPBindingFaultExtensions)bindFault
.getComponentExtensionContext(HTTPConstants.NS_URI_HTTP);
assertNotNull("The BindingFault does not contain an HTTPBindingFaultExtensions object.",
httpBindFaultExts);
actual = httpBindFaultExts.getHttpErrorStatusCode();