public void testContainerLastModified() throws Exception {
final String objid = getRandomUniqueId();
final String objURI = serverAddress + objid;
final long lastmod1;
try (final CloseableHttpResponse response = execute(putObjMethod(objid))) {
<BUG>assertEquals(CREATED.getStatusCode(), getStatus(response));
lastmod1 = headerFormat.parse(response.getFirstHeader("Last-Modified").getValue()).getTime();
</BUG>
}
sleep(1000); // wait a second to make sure last-modified value will be different

public void testContainerLastModified() throws Exception {
final String objid = getRandomUniqueId();
final String objURI = serverAddress + objid;
final long lastmod1;
try (final CloseableHttpResponse response = execute(putObjMethod(objid))) {
assertEquals(CREATED.getStatusCode(), getStatus(response));
lastmod1 = Instant.from(
headerFormat.parse(response.getFirstHeader("Last-Modified").getValue())).toEpochMilli();
}
sleep(1000); // wait a second to make sure last-modified value will be different
