@Test
public void testCopyDataFrom() {

	// Add elements to one list
	list.add((short)1);
	list.add((short)10);
	list.add((short)-5);
	// Make a copy
	ShortList list2 = new ShortList(100);
	list2.copyDataFrom(list);
	// They should have the same size
	assertEquals(3, list2.size());
	// An element should be in the copy
	assertTrue(list2.contains((short)-5));
	// The first element in the copy should be the same
	assertEquals(1, list2.get(0));
}