@Test public void removeDeleteAt() throws IOException, DateParseException { expectStatusCode(202, false); prepareMetadata(); object.setDeleteAt(null); verifyHeaderValue(null, X_DELETE_AT, "POST"); }
@Test public void setDeleteAt() throws IOException, DateParseException { expectStatusCode(202, false); prepareMetadata(); final Date date = DateUtils.parseDate("Mon, 03 Sep 2001 05:40:33 GMT"); object.setDeleteAt(date); verifyHeaderValue(Long.toString(date.getTime() / 1000), X_DELETE_AT, "POST"); }