}
public void testBasicFunction()
{
ReferenceValueMap map = newReferenceValueMap();
String[] keyArray = new String[NUM_TEST_ENTRIES];
Integer[] valueArray = new Integer[NUM_TEST_ENTRIES];
for (int i = 0; i < keyArray.length; i++)
{
keyArray[i] = "" + i;
valueArray[i] = new Integer(i);
map.put(keyArray[i], valueArray[i]);
}
checkMapContents(map, keyArray, valueArray);
Map map2 = (Map)map.clone();
map.clear();
assertEquals(0, map.size());
map.putAll(map2);
checkMapContents(map, keyArray, valueArray);
assertEquals(NUM_TEST_ENTRIES, map.size());
}