### Question:
PingRequestProcessor implements RpcProcessor<PingRequest> { @Override public void handleRequest(final RpcContext rpcCtx, final PingRequest request) { rpcCtx.sendResponse( RpcFactoryHelper .responseFactory() .newResponse(RpcRequests.ErrorResponse.getDefaultInstance(), 0, "OK")); }  @Override void handleRequest(final RpcContext rpcCtx, final PingRequest request); @Override String interest();  }### Answer:
@Test public void testHandlePing() throws Exception { PingRequestProcessor processor = new PingRequestProcessor(); MockAsyncContext ctx = new MockAsyncContext(); processor.handleRequest(ctx, TestUtils.createPingRequest()); ErrorResponse response = (ErrorResponse) ctx.getResponseObject(); assertEquals(0, response.getErrorCode()); }