@Test
public void testLifecycle() throws Throwable {

  MockRPC rpc = new MockRPC();
  WorkflowRpcService svc = new WorkflowRpcService("test", rpc);
  run(svc);
  assertTrue(rpc.started);
  svc.getConnectAddress();
  svc.stop();
  assertTrue(rpc.stopped);
}