@Test
public void testGetExistingCluster() throws ReaperException {

  final MockObjects mocks = initMocks();
  when(mocks.jmxProxy.getLiveNodes()).thenReturn(Arrays.asList(SEED_HOST));
  Cluster cluster = Cluster.builder()
      .withName(I_DO_EXIST)
      .withPartitioner(PARTITIONER)
      .withSeedHosts(ImmutableSet.of(SEED_HOST))
      .withState(Cluster.State.ACTIVE)
      .build();
  mocks.context.storage.addCluster(cluster);
  ClusterResource clusterResource = new ClusterResource(mocks.context, mocks.cryptograph, EXECUTOR);
  Response response = clusterResource.getCluster(I_DO_EXIST, Optional.<Integer>empty());
  Assertions.assertThat(response.getStatus()).isEqualTo(HttpStatus.OK_200);
}