### Question:
Delegate { @Override public boolean equals(Object o) { if (o == this) { return true; } else if (o instanceof Delegate) { Delegate m = (Delegate) o; return m.name.equals(name) && m.parameters.equals(parameters); } else { return false; } } Delegate(Type declaringType, Type delegateType, String name, List<Parameter> params,
            Type returnType); @Override boolean equals(Object o); Type getDeclaringType(); Type getDelegateType(); String getName(); List<Parameter> getParameters(); Type getReturnType(); @Override int hashCode(); @Override String toString();  }### Answer:
@Test public void not_equals_object() { Delegate delegate = new Delegate(Types.STRING, Types.STRING, "delegate", Collections.<Parameter>emptyList(), Types.STRING); Delegate delegate2 = new Delegate(Types.STRING, Types.STRING, "delegate2", Collections.<Parameter>emptyList(), Types.STRING); assertFalse(delegate.equals(delegate2)); }