### Question:
MaxImmSubItem extends ProtectedItem { @Override public boolean equals( Object o ) { if ( this == o ) { return true; } if ( o instanceof MaxImmSubItem ) { MaxImmSubItem that = ( MaxImmSubItem ) o; return this.value == that.value; } return false; } MaxImmSubItem( int value ); int getValue(); @Override int hashCode(); @Override boolean equals( Object o ); @Override String toString();  }### Answer:
@Test public void testEqualsNotInstanceOf() throws Exception { assertFalse( maxImmSubItemA.equals( UndefinedNode.UNDEFINED_NODE ) ); }
@Test public void testEqualsNull() throws Exception { assertFalse( maxImmSubItemA.equals( null ) ); }
@Test public void testNotEqualDiffValue() throws Exception { assertFalse( maxImmSubItemA.equals( maxImmSubItemC ) ); assertFalse( maxImmSubItemC.equals( maxImmSubItemA ) ); }