@Test
@SuppressWarnings("unchecked")
public void testIterator_Close() {

    CloseableIterator<Car> mockIterator = mock(CloseableIterator.class);
    ObjectStore<Car> mockObjectStore = mock(ObjectStore.class);
    Mockito.when(mockObjectStore.iterator(Mockito.<QueryOptions>any())).thenReturn(mockIterator);
    FilteredObjectStore<Car> filteredObjectStore = new FilteredObjectStore<Car>(
            mockObjectStore,
            between(Car.CAR_ID, 2, 4)
    );
    filteredObjectStore.iterator(noQueryOptions()).close();
    verify(mockIterator, times(1)).close();
}