@Test
public void testAll() {

    IndexedCollection<Integer> indexedCollection = new ConcurrentIndexedCollection<Integer>();
    indexedCollection.addAll(asList(1, 2, 3, 4, 5));
    IndexedCollection<Integer> collection = indexedCollection;
    Query<Integer> query = all(Integer.class);
    ResultSet<Integer> results = collection.retrieve(query);
    assertEquals(5, results.size());
    assertTrue(results.iterator().hasNext());
}