@Test
public void testListObjectsAllObjectsNoPageModTime() {

    
    MockS3ChangeLogStore store = new MockS3ChangeLogStore();
    
    ArrayList<S3ObjectSummary> objectList = new ArrayList<>();
    S3ObjectSummary objectSummary = new S3ObjectSummary();
    objectSummary.setKey("iaas");
    objectSummary.setLastModified(new Date(100));
    objectList.add(objectSummary);
    objectSummary = new S3ObjectSummary();
    objectSummary.setKey("iaas.athenz");
    objectSummary.setLastModified(new Date(200));
    objectList.add(objectSummary);
    
    ObjectListing objectListing = mock(ObjectListing.class);
    when(objectListing.getObjectSummaries()).thenReturn(objectList);
    when(objectListing.isTruncated()).thenReturn(false);
    when(store.awsS3Client.listObjects(any(ListObjectsRequest.class))).thenReturn(objectListing);
    
    ArrayList<String> domains = new ArrayList<>();
    store.listObjects(store.awsS3Client, domains, (new Date(150)).getTime());
    
    assertEquals(domains.size(), 1);
    assertTrue(domains.contains("iaas.athenz"));
}