Mock mockEndpoint = new Mock(InboundEndpoint.class);
mockEndpoint.expectAndReturn("getConnector", httpsConnector);
mockEndpoint.expectAndReturn("getEncoding", new DefaultMuleConfiguration().getDefaultEncoding());
mockEndpoint.expectAndReturn("getProperties", properties);
mockEndpoint.expectAndReturn("getProperties", properties);
InboundEndpoint inboundEndpoint = (InboundEndpoint) mockEndpoint.proxy();
Mock mockService = new Mock(Service.class);
mockService.expectAndReturn("getResponseRouter", null);
mockService.expectAndReturn("getInboundRouter", new ServiceCompositeMessageSource());
Service service = (Service) mockService.proxy();