@Test
 public void setLastModified() {
   String dateText = "2012-12-05T14:57:00.165930";
   StoredObject object = createStoredObject("alpha");
   object.setLastModified(dateText);
   object.metadataSetFromHeaders();
   Date date = object.getLastModifiedAsDate();
   SimpleDateFormat formatter = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss");
   assertEquals("2012-12-05T14:57:00", formatter.format(date));
 }
 @Test
 public void getMetadata() throws IOException, DateParseException {
   expectStatusCode(202);
   prepareMetadata();
   assertEquals("1989", object.getMetadata().get("Year"));
   assertEquals("42 BV", object.getMetadata().get("Company"));
   assertEquals("Mon, 03 Sep 2012 05:40:33 GMT", object.getLastModified());
   assertEquals(
       DateUtils.parseDate("Mon, 03 Sep 2012 05:40:33 GMT"), object.getLastModifiedAsDate());
   assertEquals(654321, object.getContentLength());
   assertEquals("image/png", object.getContentType());
   assertEquals("cae4ebb15a282e98ba7b65402a72f57c", object.getEtag());
   assertEquals("1339429105", object.getDeleteAt());
   assertEquals(DateUtils.parseDate("Mon, 11 Jun 2012 15:38:25 GMT"), object.getDeleteAtAsDate());
 }