public void testContainers() throws Exception {
WebResource resource = getStorageResource();
ClientResponse response = resource.path("containers").accept("application/xml").get(ClientResponse.class);
assertEquals(200, response.getStatus());
Containers containers = response.getEntity(Containers.class);
assertTrue(containers.getContainer() == null || containers.getContainer().isEmpty());
response = resource.path("containers").accept("text/html").get(ClientResponse.class);
assertEquals(200, response.getStatus());
response = resource.path("containers/one").get(ClientResponse.class);
assertEquals(404, response.getStatus());
Container containerOne = new Container();
response = resource.path("containers/one").put(ClientResponse.class, containerOne);
assertEquals(201, response.getStatus());
response = resource.path("containers").accept("application/xml").get(ClientResponse.class);
assertEquals(200, response.getStatus());
containers = response.getEntity(Containers.class);
assertEquals(1, containers.getContainer().size());
response = resource.path("containers/one").get(ClientResponse.class);
assertEquals(200, response.getStatus());
containerOne = response.getEntity(Container.class);
assertEquals("one", containerOne.getName());