HelloService { public byte[] hello(byte[] requestData) throws IOException { HelloRequest request = deserialize(requestData); HelloResponse response = hello(request); return serialize(response); }  byte[] hello(byte[] requestData); static final Schema<HelloRequest> SEARCH_REQUEST_SCHEMA; static final Schema<HelloResponse> SEARCH_RESPONSE_SCHEMA; }
@Test public void testSearch() throws Exception { byte[] responseData = service.hello(REQUEST); Assert.assertArrayEquals(RESPONSE, responseData); }