### Question:
TemporalIndexCache extends IndexPartsCache<TemporalIndexCache.Offset,T> { T select( ValueGroup valueGroup ) { return uncheckedSelect( valueGroup ); } TemporalIndexCache( Factory<T> factory );   }### Answer:
@Test public void shouldIterateOverCreatedParts() throws Exception { StringFactory factory = new StringFactory(); TemporalIndexCache<String> cache = new TemporalIndexCache<>( factory ); assertEquals( Iterables.count( cache ), 0 ); cache.select( LOCAL_DATE_TIME ); cache.select( ZONED_TIME ); assertThat( cache, containsInAnyOrder( "LocalDateTime", "ZonedTime" ) ); cache.select( DATE ); cache.select( LOCAL_TIME ); cache.select( LOCAL_DATE_TIME ); cache.select( ZONED_TIME ); cache.select( ZONED_DATE_TIME ); cache.select( DURATION ); assertThat( cache, containsInAnyOrder( "Date", "LocalDateTime", "ZonedDateTime", "LocalTime", "ZonedTime", "Duration" ) ); }