final int srcId1 = 101;
params.setProperty(DatabusHttpHeaders.PROTOCOL_VERSION_PARAM, protoVersion);
params.setProperty(RegisterRequestProcessor.SOURCES_PARAM, Integer.toString(srcId1));
DatabusRequest mockReq = EasyMock.createMock(DatabusRequest.class);
EasyMock.expect(mockReq.getParams()).andReturn(params).anyTimes();
EasyMock.replay(mockReq);
HttpRelay mockRelay = EasyMock.createMock(HttpRelay.class);
EasyMock.expect(mockRelay.getHttpStatisticsCollector()).andReturn(null).anyTimes();
EasyMock.replay(mockRelay);