//Create a mocked WireService, make the call of ServiceExtension.getServiceInstance() returns a proxy instance.
WireService wireService = EasyMock.createNiceMock(WireService.class);
EasyMock.replay(wireService);
CompositeComponent parent = EasyMock.createNiceMock(CompositeComponent.class);
// TODO figure out what to do with the service contract
ServiceContract<?> contract = new WSDLServiceContract();
contract.setInterfaceClass(Greeter.class);
WorkContext workContext = EasyMock.createNiceMock(WorkContext.class);
EasyMock.replay(workContext);
return new Axis2Reference(serviceName,
parent,
wireService,