### Question:
Execution implements Comparable<Execution> { @Override public boolean equals(final Object obj) { return obj instanceof Execution && compareTo((Execution) obj) == 0; } Execution(final String id, final String phase, final Configuration configuration,
      final String... goals);  Execution(final String id, final String phase, final String... goals); int compareTo(final Execution other); @Override boolean equals(final Object obj); Configuration getConfiguration(); Element getElement(final Document document); List<String> getGoals(); String getId(); String getPhase(); @Override int hashCode(); @Override String toString();  }### Answer:
@Test public void testExecutionWithConfigurationDoesNotEqualOneWithout() { final Execution execution1 = new Execution(ID, PHASE, GOALS); final Execution execution2 = new Execution(ID, PHASE, mockConfiguration, GOALS); assertFalse(execution1.equals(execution2)); assertFalse(execution2.equals(execution1)); }