### Question:
OAuth2GadgetBinding { @Override public boolean equals(final Object obj) { if (obj == this) { return true; } if (!(obj instanceof OAuth2GadgetBinding)) { return false; } final OAuth2GadgetBinding other = (OAuth2GadgetBinding) obj; if (this.gadgetUri == null) { if (other.gadgetUri != null) { return false; } } else if (!this.gadgetUri.equals(other.gadgetUri)) { return false; } if (this.gadgetServiceName == null) { if (other.gadgetServiceName != null) { return false; } } else if (!this.gadgetServiceName.equals(other.gadgetServiceName)) { return false; } return true; } OAuth2GadgetBinding(final String gadgetUri, final String gadgetServiceName,
      final String clientName, final boolean allowOverride); @Override boolean equals(final Object obj); String getClientName(); String getGadgetServiceName(); String getGadgetUri(); @Override int hashCode(); boolean isAllowOverride(); @Override String toString();  }### Answer:
@Test public void testEquals_1() throws Exception { final Object obj = new OAuth2GadgetBinding(MockUtils.GADGET_URI1, MockUtils.SERVICE_NAME, "xxx", true); final boolean result = OAuth2GadgetBindingTest.FIXTURE.equals(obj); Assert.assertEquals(true, result); }
@Test public void testEquals_2() throws Exception { final Object obj = new Object(); final boolean result = OAuth2GadgetBindingTest.FIXTURE.equals(obj); Assert.assertEquals(false, result); }
@Test public void testEquals_3() throws Exception { final boolean result = OAuth2GadgetBindingTest.FIXTURE.equals(null); Assert.assertEquals(false, result); }