}
// test failure in phases before Phase.PRE_LOGICAL
Iterator<Phase> it = inPhases.iterator();
Phase p = null;
FaultLocation location = new org.apache.cxf.greeter_control.types.ObjectFactory()
.createFaultLocation();
location.setAfter(MAPAggregator.class.getName());
// test failure occuring before logical addressing interceptor
while (it.hasNext()) {
p = it.next();
location.setPhase(p.getName());
if (Phase.PRE_LOGICAL.equals(p.getName())) {
break;
}
testFail(location, true);
}
// test failure occuring after logical addressing interceptor -
// won't get a fault in case of oneways (partial response already sent)
do {
location.setPhase(p.getName());
if (Phase.INVOKE.equals(p.getName())) {
//faults from the PRE_LOGICAL and later phases won't make
//it back to the client, the 200/202 response has already
//been returned. The server has accepted the message
break;
}