> +      MockResponse response = new MockResponse();
> +      response.setBody(stringFromResource("/volume/get.json"));
> +      response.setHeader("Content-Type", 
> "application/vnd.profitbricks.resource+json");
> +      
> +      server.enqueue(response);
> +      
> +      Volume volume = volumeApi().getVolume("datacenter-id", "some-id");
> +      
> +      assertNotNull(volume);
> +      assertEquals(volume.properties().name(), "Docker Registry Volume");
> +      
> +      assertEquals(server.getRequestCount(), 1);
> +      assertSent(server, "GET", 
> "/datacenters/datacenter-id/volumes/some-id");
> +   }
> +   
> +   public void testGetVolumeWith404() throws InterruptedException {

No need for this too.

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

Reply via email to