public static void assertEqualsRpc(byte[] expected, ArrowBuf actual) throws RpcException{ try{ assertEqualsBytes(expected, actual); }catch(AssertionError e){ throw new RpcException(e); } }
@Override public SentResponseMessage<QueryId> handle(NodeEndpoint request, ArrowBuf dBody) throws RpcException { if (!request.equals(expectedD)) { throw new RpcException("Objects not same."); } assertEqualsRpc(r1B, dBody); random2.retain(); return new SentResponseMessage<>(expectedQ, random2); } });