assertTrue(containers.getContainer() == null || containers.getContainer().isEmpty());
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());
assertNotNull(containerOne.getUri());
assertTrue(containerOne.getItem() == null || containerOne.getItem().isEmpty());
String stringItem = "here is a string that we want to store";
response = resource.path("containers/one/string").type("text/plain").put(ClientResponse.class, stringItem);
assertEquals(201, response.getStatus());
response = resource.path("containers/one").get(ClientResponse.class);
assertEquals(200, response.getStatus());
containerOne = response.getEntity(Container.class);
assertEquals(1, containerOne.getItem().size());
assertEquals("text/plain", containerOne.getItem("string").getMimeType());
response = resource.path("containers/one/string").get(ClientResponse.class);
assertEquals(200, response.getStatus());
assertEquals(stringItem, response.getEntity(String.class));
}