### Question:
MethodTarget { @Override public boolean equals(final Object other) { if (other == this) { return true; } if (!(other instanceof MethodTarget)) { return false; } final MethodTarget otherMethodTarget = (MethodTarget) other; return method.equals(otherMethodTarget.getMethod()) && target.equals(otherMethodTarget.getTarget()); } MethodTarget(final Method method, final Object target);  MethodTarget(final Method method, final Object target, final String remainingBuffer,
      final String key); @Override boolean equals(final Object other); String getKey(); Method getMethod(); String getRemainingBuffer(); Object getTarget(); @Override int hashCode(); @Override final String toString();  }### Answer:
@Test public void testInstanceDoesNotEqualNull() { assertFalse(new MethodTarget(METHOD_1, TARGET_1).equals(null)); }
@Test public void testInstancesWithDifferentMethodAreNotEqual() { assertFalse(new MethodTarget(METHOD_1, TARGET_1).equals(new MethodTarget(METHOD_2, TARGET_1))); }
@Test public void testInstancesWithDifferentTargetAreNotEqual() { assertFalse(new MethodTarget(METHOD_1, TARGET_1).equals(new MethodTarget(METHOD_1, TARGET_2))); }