System.out.println("Invoking pingMe, expecting exception...");
port.pingMe("hello");
fail("expects the exception here");
} catch (PingMeFault ex) {
assertEquals("Get a wrong exception message", "PingMeFault raised by server EndpointB", ex.getMessage());
FaultDetail detail = ex.getFaultInfo();
assertEquals("Wrong FaultDetail major:", 2, detail.getMajor());
assertEquals("Wrong FaultDetail minor:", 1, detail.getMinor());
}
shutDownServer();
}