@Test
public void testHealthCheck() throws Exception {

  Client client = createClient();
  try {
    URI uri = URI.create("http://localhost:" + serverPort + "/ws/v2/"
    + "timeline/health");
    ClientResponse resp = getResponse(client, uri);
    TimelineHealth timelineHealth =
        resp.getEntity(new GenericType<TimelineHealth>() {
        });
    assertEquals(200, resp.getStatus());
    assertEquals(TimelineHealth.TimelineHealthStatus.RUNNING,
        timelineHealth.getHealthStatus());
  } finally {
    client.destroy();
  }
}