public void responses() {
testServerToClient(new ChunkFetchSuccess(new StreamChunkId(1, 2), new TestManagedBuffer(10)));
testServerToClient(new ChunkFetchSuccess(new StreamChunkId(1, 2), new TestManagedBuffer(0)));
testServerToClient(new ChunkFetchFailure(new StreamChunkId(1, 2), "this is an error"));
testServerToClient(new ChunkFetchFailure(new StreamChunkId(1, 2), ""));
testServerToClient(new RpcResponse(12345, new byte[0]));
testServerToClient(new RpcResponse(12345, new byte[1000]));
testServerToClient(new RpcFailure(0, "this is an error"));
testServerToClient(new RpcFailure(0, ""));
}