@Test
  public void getRoleInstances() throws IOException {
    String response = readFileAsString("instances-response.json");

    List<InstanceInfo> expected = getExpectedInstances();

    ConquesoClient client =
        createClientReturningString("/api/roles/analytics-service/instances", response);

    ImmutableList<InstanceInfo> result = client.getRoleInstances("analytics-service");
    assertEquals(expected, result);
  }