TaskProperties { @Override public boolean equals(Object anObject) { if (this == anObject) { return true; } if (anObject instanceof TaskProperties) { TaskProperties anotherProperties = (TaskProperties) anObject; if (this.repeat != anotherProperties.repeat) { return false; } if (this.delay != anotherProperties.delay) { return false; } return true; } return false; } TaskProperties();  TaskProperties(boolean repeat);  TaskProperties(boolean repeat, long delay); boolean isRepeat(); void setRepeat(boolean repeat); long getDelay(); void setDelay(long delay); @Override boolean equals(Object anObject);  }
@Test public void testNullEquals(){ TaskProperties properties = new TaskProperties(); Assert.assertFalse(properties.equals(null)); }
@Test public void testSameObject(){ TaskProperties properties = new TaskProperties(); Assert.assertTrue(properties.equals(properties)); }