assertEquals(false, ColorEnum.RED.equals("test")); assertEquals(false, ColorEnum.RED.equals(new Integer(1))); assertEquals(false, ColorEnum.RED.equals(new Boolean(true))); assertEquals(false, ColorEnum.RED.equals(new StringBuffer("test")));
for (Iterator iter = ColorEnum.iterator(); iter.hasNext();) { ColorEnum element = (ColorEnum) iter.next(); this.testEqualsToWrongInstance(element); }
    public void testEqualsToWrongInstance() {        assertEquals(false, ColorEnum.RED.equals("test"));        assertEquals(false, ColorEnum.RED.equals(new Integer(1)));        assertEquals(false, ColorEnum.RED.equals(new Boolean(true)));        assertEquals(false, ColorEnum.RED.equals(new StringBuffer("test")));    }