### Question:
MethodTarget { @Override public int hashCode() { return ObjectUtils.hashCodeMulti(method, target); } 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 testInstancesWithSameMethodAndTargetAreEqualAndHaveSameHashCode() { final MethodTarget instance1 = new MethodTarget(METHOD_1, TARGET_1, "the-buff", "the-key"); final MethodTarget instance2 = new MethodTarget(METHOD_1, TARGET_1); assertEquals(instance1, instance2); assertEquals(instance1.hashCode(), instance2.hashCode()); }