@Test
public void testDense() throws NoSuchFieldException, IllegalAccessException {

    FieldInfo[] infosArray = makeInfosArray(100);
    FieldInfos orig = new FieldInfos(infosArray);
    Collection<Object> values = extractValues(orig);
    assertSame(Collections.unmodifiableCollection(new TreeMap<String, Object>().values()).getClass(),
            values.getClass());
    FieldInfoCache cache = new FieldInfoCache();
    FieldInfos fixedFieldInfo = cache.dedupFieldInfos(infosArray);
    values = extractValues(fixedFieldInfo);
    assertSame(Collections.unmodifiableCollection(Collections.emptyList()).getClass(), values.getClass());
}