Initialize an engine with a single handler with a parameter set, and
another reference to that same handler with a different name.
Make sure the param is set for both the original and the reference
handler.
XMLStringProvider provider = new XMLStringProvider(goodWSDD);
AxisServer server = new AxisServer(provider);
Handler h1 = server.getHandler(HANDLER_NAME);
assertNotNull("Couldn't get logger handler from engine!", h1);
AdminClient client = new AdminClient(true);
String doc = header + badHandler + footer;
ByteArrayInputStream stream = new ByteArrayInputStream(doc.getBytes());
LocalTransport transport = new LocalTransport(server);
transport.setUrl("local:///AdminService");
client.getCall().setTransport(transport);
try {
client.process(stream);
} catch (Exception e) {
return;
}
fail("Successfully processed bad WSDD!");