Map entries = new HashMap();
Color c = new Color( "blah", 0, entries );
assertTrue( entries.containsKey("blah") );
assertTrue( entries.containsValue(c) );
OtherColor c2 = new OtherColor( "blah", 0, entries );
assertTrue( entries.containsKey("blah") );
assertFalse( entries.containsValue(c) );
assertTrue( entries.containsValue(c2) );