### Question:
RpcEncoder { public <T> Bytes encodeSuccessfulResponse(T response) { return Bytes.concatenate(Bytes.of(SUCCESS_RESPONSE_CODE), encoding.encodePayload(response)); } RpcEncoder(final RpcEncoding encoding); Bytes encodeRequest(T request); Bytes encodeSuccessfulResponse(T response); Bytes encodeErrorResponse(RpcException error);  }### Answer:
@Test public void shouldEncodeSuccessfulResponse() { final Bytes actual = encoder.encodeSuccessfulResponse(RECORDED_STATUS_MESSAGE_DATA); assertThat(actual).isEqualTo(RECORDED_STATUS_RESPONSE_BYTES); }