control.verify();
}
@Test
public void testWSDLQuery() throws Exception {
WSDLQueryHandler wqh = control.createMock(WSDLQueryHandler.class);
String pathInfo = null;
String addr = ADDRESS + "?wsdl";
expect(wqh.isRecognizedQuery(addr, pathInfo, endpoint, false)).andReturn(true);
wqh.writeResponse(eq(addr), eq(pathInfo), eq(endpoint), isA(OutputStream.class));
EasyMock.expectLastCall();
QueryHandlerRegistry qhr = control.createMock(QueryHandlerRegistry.class);
expect(qhr.getHandlers()).andReturn(Collections.singletonList((QueryHandler)wqh));
expect(bus.getExtension(QueryHandlerRegistry.class)).andReturn(qhr);
HttpExchange exchange = setUpExchangeForWSDLQuery(pathInfo);