assertTrue("server did not launch correctly", launchServer(Server12.class));
}
@Test
public void testFaultMessage() throws Exception {
Greeter greeter = getGreeter();
try {
greeter.sayHi();
fail("Should throw Exception!");
} catch (SOAPFaultException ex) {
assertEquals("sayHiFault Caused by: Get a wrong name <sayHi>", ex.getMessage());
StackTraceElement[] element = ex.getCause().getStackTrace();
assertEquals("org.apache.cxf.systest.soapfault.details.GreeterImpl12", element[0].getClassName());