assertNotNull(collection);
assertTrue(collection instanceof Serializable);
}
public void testWrapNonSerializable() {
Collection collection = ShortCollectionCollection.wrap(new RandomAccessShortList() {
public short get(int i) { throw new IndexOutOfBoundsException(); }
public int size() { return 0; }
});
assertNotNull(collection);
assertTrue(!(collection instanceof Serializable));