@Test
public void testGetClusters_multiple_ordered_by_state() throws ReaperException {

  final MockObjects mocks = initMocks();
  Cluster cluster = Cluster.builder()
      .withName(CLUSTER_NAME)
      .withSeedHosts(ImmutableSet.of(SEED_HOST))
      .withState(Cluster.State.UNREACHABLE)
      .build();
  mocks.context.storage.addCluster(cluster);
  cluster = Cluster.builder()
      .withName("cluster2")
      .withSeedHosts(ImmutableSet.of("host2"))
      .withState(Cluster.State.ACTIVE)
      .build();
  mocks.context.storage.addCluster(cluster);
  ClusterResource clusterResource = new ClusterResource(mocks.context, mocks.cryptograph, EXECUTOR);
  Response response = clusterResource.getClusterList(Optional.empty());
  Assertions.assertThat(response.getStatus()).isEqualTo(HttpStatus.OK_200);
  List<String> clusterNames = (List<String>) response.getEntity();
  Assertions.assertThat(clusterNames).hasSize(2);
  Assertions.assertThat(clusterNames).containsExactly("cluster2", CLUSTER_NAME);
}