public void test_get_nullMatchesIncorrectly() { StaticBucketMap map = new StaticBucketMap(17); map.put(null, "A"); assertEquals("A", map.get(null)); // loop so we find a string that is in the same bucket as the null for (int i = 'A'; i <= 'Z'; i++) { String str = String.valueOf((char) i); assertEquals("String: " + str, null, map.get(str)); } }