assertEquals(fault.getState(), SampleResponse.SQL_MESSAGE_STATE);
}
@Test
public void test401InDebugMode() throws IOException {
SOAPRequester mockRequester = createMock(SOAPRequester.class);
com.alexgilleran.icesoap.request.impl.Response dummyResponse = new com.alexgilleran.icesoap.request.impl.Response(
new ByteArrayInputStream("".getBytes()), 401);
expect(mockRequester.doSoapRequest(getDummyEnvelope(), "", "")).andReturn(dummyResponse);
replay(mockRequester);
SOAP11Request<Response> request = new RequestFactoryImpl(mockRequester).buildRequest("", getDummyEnvelope(),
"", Response.class);
request.setDebugMode(true);