### Question:
StageStatus { @Override public boolean equals(Object other) { if (this == other) { return true; } if (!(other instanceof StageStatus)) { return false; } StageStatus item = (StageStatus) other; return new EqualsBuilder().append(x, item.getX()).append(y, item.getY()).append(width, item.getWidth()) .append(height, item.getHeight()).append(mode, item.getMode()).isEquals(); } StageStatus();  StageStatus(double x, double y, double width, double height); double getX(); void setX(double x); double getY(); void setY(double y); double getWidth(); void setWidth(double width); double getHeight(); void setHeight(double height); void setMode(StageMode mode); StageMode getMode(); @Override String toString(); @Override int hashCode(); @Override boolean equals(Object other); static final StageStatus NULL; }### Answer:
@Test public void testEquals() { StageStatus eq1 = new StageStatus(10, 20, 100, 200); StageStatus eq2 = new StageStatus(10, 20, 100, 200); StageStatus eq3 = new StageStatus(10, 20, 100, 200); StageStatus diff = new StageStatus(20, 10, 200, 100); TestUtils.testEqualsAndHashCodes(eq1, eq2, eq3, diff); }