assertNotNull(collection);
assertTrue(collection instanceof Serializable);
}
public void testWrapNonSerializable() {
LongCollection collection = CollectionLongCollection.wrap(new AbstractList() {
public Object get(int i) { throw new IndexOutOfBoundsException(); }
public int size() { return 0; }
});
assertNotNull(collection);
assertTrue(!(collection instanceof Serializable));