@org.junit.Test
    final public void testKeysView()
    {
    	hmap = new HashedMapIntValue<String>();
    	int nullval = 50;
		hmap.put(null, nullval);
		hmap.put("11", 11);
		hmap.put("12", 12);
		hmap.put("13", 13);
		hmap.put("14", 14);
		hmap.put("15", 15);
		int sum_values = 11+12+13+14+15+50;

		String delkey = "13";
		int itercnt_exp = hmap.size();
		int itercnt = 0;
		int sum = 0;
		boolean found_null = false;
		java.util.Iterator<String> iter = hmap.keysIterator();
        try {
        	iter.remove();
        	org.junit.Assert.fail("Failed to trap Iterator remove() before next() on Keys");
        } catch (IllegalStateException ex) {}
		while (iter.hasNext()) {
			String str = iter.next();
			sum += hmap.get(str);
			if (str == null) found_null = true;
			if (str == delkey) iter.remove();
			itercnt++;
		}
		try {iter.next(); org.junit.Assert.fail("Failed to trap extra next() on Keys");} catch (java.util.NoSuchElementException ex) {}
		org.junit.Assert.assertEquals(itercnt, itercnt_exp);
		org.junit.Assert.assertEquals(sum, sum_values);
		org.junit.Assert.assertTrue(found_null);
		org.junit.Assert.assertFalse(hmap.containsKey(delkey));
		org.junit.Assert.assertEquals(0, hmap.put(delkey, Integer.parseInt(delkey)));
		org.junit.Assert.assertTrue(hmap.containsKey(delkey));
		verifySize(itercnt_exp);

		itercnt = 0;
		sum = 0;
		found_null = false;
		iter = hmap.keysIterator();
		while (iter.hasNext()) {
			String str = iter.next();
			int val = hmap.get(str);
			if (str == null) {
				org.junit.Assert.assertEquals(nullval, val);
				found_null = true;
			} else {
				org.junit.Assert.assertEquals(Integer.parseInt(str), val);
			}
			sum += val;
			iter.remove();
			itercnt++;
		}
		try {iter.next(); org.junit.Assert.fail("Iterator out of bounds");} catch (java.util.NoSuchElementException ex) {}
    	verifySize(0);
		org.junit.Assert.assertEquals(itercnt, itercnt_exp);
		org.junit.Assert.assertEquals(sum, sum_values);
		org.junit.Assert.assertTrue(found_null);
   
    	iter = hmap.keysIterator();
		org.junit.Assert.assertFalse(iter.hasNext());
    }