### Question:
WidgetExpressionEntry { @Override public boolean equals(Object obj) { if (this == obj) { return true; } if (obj == null) { return false; } if (getClass() != obj.getClass()) { return false; } WidgetExpressionEntry other = (WidgetExpressionEntry) obj; if (entry == null) { if (other.entry != null) { return false; } } else if (!entry.equals(other.entry)) { return false; } return true; } WidgetExpressionEntry(String widgetId, ExpressionId expressionId); @Override String toString(); @Override int hashCode(); @Override boolean equals(Object obj);  }### Answer:
@Test public void testTwoWidgetExpressionEntryEqualAREEquals() { WidgetExpressionEntry widget1 = new WidgetExpressionEntry("widgetId", ExpressionId.WIDGET_DISPLAY_CONDITION); WidgetExpressionEntry widget2 = new WidgetExpressionEntry("widgetId", ExpressionId.WIDGET_DISPLAY_CONDITION); boolean result = widget1.equals(widget2); assertTrue(result); }
@Test public void testWidgetExpressionEntryIsNotEqualsToNull() { WidgetExpressionEntry widget = new WidgetExpressionEntry("widgetId", ExpressionId.WIDGET_DISPLAY_CONDITION); boolean result = widget.equals(null); assertFalse(result); }