  @Test
  public void getInstances(@Injectable
      HttpTransport httpTransport) throws ServiceCombException, IOException {

    final int expectedCode = 200;
    Response response = new Response();
    response.setStatusCode(expectedCode);
    String responseString = "{\n"
        + "  \"instances\": [\n"
        + "    {\n"
        + "      \"instanceId\": \"1\",\n"
        + "      \"serviceId\": \"2\",\n"
        + "      \"version\": \"0.1\",\n"
        + "      \"hostName\": \"string\",\n"
        + "      \"endpoints\": [\n"
        + "        \"string\"\n"
        + "      ],\n"
        + "      \"status\": \"UP\",\n"
        + "      \"dataCenterInfo\": {\n"
        + "        \"name\": \"string\",\n"
        + "        \"region\": \"string\",\n"
        + "        \"availableZone\": \"string\"\n"
        + "      },\n"
        + "      \"timestamp\": \"string\",\n"
        + "      \"modTimestamp\": \"string\"\n"
        + "    }\n"
        + "  ]\n"
        + "}";

    response.setContent(responseString);

    Microservice microservice = new Microservice();
    new Expectations() {
      {
        Deencapsulation.newUninitializedInstance(DefaultHttpTransport.class);
        result = httpTransport;
        httpTransport.sendGetRequest(anyString, (Map<String, String>) any);
        result = response;
      }
    };
    ServiceCombClient serviceCombClient = new ServiceCombClient(url, httpTransport);
    List<ServiceInstance> actual = serviceCombClient.getInstances(microservice, null);
    Assert.assertEquals(1, actual.size());
  }