### Question:
SoapFaultFactory implements BindingFaultFactory { Fault createSoap11Fault(SequenceFault sf) { return new SoapFault(sf.getReason(), sf.isSender() ? version.getSender() : version.getReceiver()); } SoapFaultFactory(Binding binding); Fault createFault(SequenceFault sf, Message msg); String toString(Fault f);  }### Answer:
@Test public void createSoap11Fault() { SoapBinding sb = control.createMock(SoapBinding.class); EasyMock.expect(sb.getSoapVersion()).andReturn(Soap11.getInstance()); setupSequenceFault(false, RM10Constants.SEQUENCE_TERMINATED_FAULT_QNAME, null); control.replay(); SoapFaultFactory factory = new SoapFaultFactory(sb); SoapFault fault = (SoapFault)factory.createFault(sf, createInboundMessage()); assertEquals("reason", fault.getReason()); assertEquals(Soap11.getInstance().getReceiver(), fault.getFaultCode()); assertNull(fault.getSubCode()); assertNull(fault.getDetail()); assertSame(sf, fault.getCause()); control.verify(); }