assertTrue(!isReadUncommitted(map));
assertTrue(!isReadUncommitted(map.values()));
assertTrue(!isReadUncommitted(map.keySet()));
assertTrue(!isReadUncommitted(map.entrySet()));
StoredSortedMap other = (StoredSortedMap)
StoredCollections.configuredMap
(map, CursorConfig.READ_UNCOMMITTED);
assertTrue(isReadUncommitted(other));
assertTrue(isReadUncommitted(other.values()));
assertTrue(isReadUncommitted(other.keySet()));
assertTrue(isReadUncommitted(other.entrySet()));
assertTrue(!isReadUncommitted(map));
assertTrue(!isReadUncommitted(map.values()));
assertTrue(!isReadUncommitted(map.keySet()));
assertTrue(!isReadUncommitted(map.entrySet()));
// read-committed property should be inherited
assertTrue(!isReadCommitted(map));
assertTrue(!isReadCommitted(map.values()));
assertTrue(!isReadCommitted(map.keySet()));
assertTrue(!isReadCommitted(map.entrySet()));
other = (StoredSortedMap)
StoredCollections.configuredMap
(map, CursorConfig.READ_COMMITTED);
assertTrue(isReadCommitted(other));
assertTrue(isReadCommitted(other.values()));
assertTrue(isReadCommitted(other.keySet()));
assertTrue(isReadCommitted(other.entrySet()));
assertTrue(!isReadCommitted(map));
assertTrue(!isReadCommitted(map.values()));
assertTrue(!isReadCommitted(map.keySet()));
assertTrue(!isReadCommitted(map.entrySet()));
}