new RequestHandlerMock(MAX_Q, ReplicationServiceConstants.INTERFACE_ID, ops));
dispatcher.start();
dispatcher.waitForStartup();
// setup the client
ReplicationClientAdapter testClient = new ReplicationClientAdapter(client,
config.getInetSocketAddress());
// run some test operations
ReusableBuffer result = testClient.chunk(fileName, offsetStart, offsetEnd).get();
assertEquals(chunkResult, new String(result.array()));
testClient.heartbeat(lsn, port).get();
}