> +   }
> +
> +   @Test
> +   public void testGetNonExistingDataCenter() throws Exception {
> +      MockWebServer server = mockWebServer();
> +      server.enqueue(new 
> MockResponse().setResponseCode(500).setBody(payloadFromResource("/fault-404.xml")));
> +
> +      ProfitBricksApi pbApi = api(server.getUrl(rootUrl));
> +      DataCenterApi api = pbApi.dataCenterApi();
> +
> +      String id = "random-non-existing-id";
> +      try {
> +         DataCenter dataCenter = api.getDataCenter(id);
> +         assertRequestHasCommonProperties(server.takeRequest());
> +         assertNull(dataCenter);
> +      } catch (Exception ex) {

[minor] This is redundant. Test will already fail if the method throws an 
exception.

---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs/pull/72/files#r22746329

Reply via email to