> +   }
> +
> +   public void testDelete() throws Exception {
> +      MockWebServer server = mockAzureManagementServer();
> +      server.enqueue(requestIdResponse("request-3"));
> +
> +      try {
> +         final AffinityGroupApi api = 
> api(server.getUrl("/")).getAffinityGroupApi();
> +
> +         assertEquals(api.delete("mygroup"), "request-3");
> +
> +         assertSent(server, "DELETE", "/affinitygroups/mygroup");
> +      } finally {
> +         server.shutdown();
> +      }
> +   }

Add mock tests that exercise the fallbacks you explicitly define in the API 
class.

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

Reply via email to