// 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();
}