/**
* @see RequestService#getLastModificationDateFromDatastore()
* @throws Exception
*/
public void testGetModifiedSince() throws Exception {
Conditions conditions = new Conditions();
conditions.setModifiedSince(BEFORE);
Response response = get("date", conditions);
assertEquals(Status.SUCCESS_OK, response.getStatus());
assertEquals(RequestService.getLastModificationDateFromDatastore(),
response.getEntity().getModificationDate());
assertEquals(getDatastoreETag(), response.getEntity().getTag());
assertNotNull(response.getEntity().getText());
assertTrue(response.getEntity().getSize() > 0);
conditions = new Conditions();
conditions.setModifiedSince(AFTER);
response = get("date", conditions);
assertEquals(Status.REDIRECTION_NOT_MODIFIED, response.getStatus());
assertEquals(RequestService.getLastModificationDateFromDatastore(),
response.getEntity().getModificationDate());
assertEquals(getDatastoreETag(), response.getEntity().getTag());