@Test
public void greeterImpl_replyMessage() throws Exception {

    // Generate a unique in-process server name.
    String serverName = InProcessServerBuilder.generateName();
    // Create a server, add service, start, and register for automatic graceful shutdown.
    grpcCleanup.register(InProcessServerBuilder
            .forName(serverName).directExecutor().addService(new HelloWorldServer.GreeterImpl()).build().start());
    GreeterGrpc.GreeterBlockingStub blockingStub = GreeterGrpc.newBlockingStub(
            // Create a client channel and register for automatic graceful shutdown.
            grpcCleanup.register(InProcessChannelBuilder.forName(serverName).directExecutor().build()));
    HelloReply reply =
            blockingStub.sayHello(HelloRequest.newBuilder().setName("test name").build());
    assertEquals("Hello test name", reply.getMessage());
}