}
public void testAsyncTargetInvoker() throws Exception {
Axis2Reference axis2Reference = createAxis2Reference("testWebAppName", "testServiceName");
//Create a mocked InboundWire, make the call of ServiceExtension.getInterface() returns a Class
InboundWire inboundWire = EasyMock.createNiceMock(InboundWire.class);
JavaServiceContract contract = new JavaServiceContract(Greeter.class);
contract.setCallbackClass(GreetingCallback.class);
Operation<Type> callbackOp = new Operation<Type>("sayHiCallback", null, null, null, true, null);
HashMap<String,Operation<Type>> callbackOps = new HashMap<String,Operation<Type>>();
callbackOps.put("sayHiCallback", callbackOp);
contract.setCallbackOperations(callbackOps);
EasyMock.expect(inboundWire.getServiceContract()).andReturn(contract).anyTimes();
EasyMock.replay(inboundWire);
axis2Reference.setInboundWire(inboundWire);
Operation operation = new Operation<Type>("sayHi", null, null, null, true, null);
TargetInvoker asyncTargetInvoker = axis2Reference.createAsyncTargetInvoker(null, operation);