### Question:
RpcEncoder { public <T> Bytes encodeRequest(T request) { return encoding.encodePayload(request); } RpcEncoder(final RpcEncoding encoding); Bytes encodeRequest(T request); Bytes encodeSuccessfulResponse(T response); Bytes encodeErrorResponse(RpcException error);  }### Answer:
@Test public void shouldEncodeStatusRequest() { final Bytes actualBytes = encoder.encodeRequest(RECORDED_STATUS_MESSAGE_DATA); assertThat(actualBytes).isEqualTo(RECORDED_STATUS_REQUEST_BYTES); }