### Question:
OAuth2Arguments { @Override public boolean equals(final Object obj) { if (this == obj) { return true; } if (!(obj instanceof OAuth2Arguments)) { return false; } final OAuth2Arguments other = (OAuth2Arguments) obj; return (this.bypassSpecCache == other.getBypassSpecCache()) && this.serviceName.equals(other.getServiceName()); } OAuth2Arguments(final AuthType auth, final Map<String, String> map);  OAuth2Arguments(final HttpServletRequest request);  OAuth2Arguments(final OAuth2Arguments orig);  OAuth2Arguments(final RequestAuthenticationInfo info); @Override boolean equals(final Object obj); boolean getBypassSpecCache(); String getRequestOption(String name); String getRequestOption(String name, String def); String getScope(); String getServiceName(); @Override int hashCode();  }### Answer:
@Test public void testEquals_1() throws Exception { final OAuth2Arguments fixture = new OAuth2Arguments(AuthType.OAUTH2, attrs); final Object obj = new OAuth2Arguments(requestMock); final boolean result = fixture.equals(obj); Assert.assertTrue(result); }
@Test public void testEquals_2() throws Exception { final Object obj = new Object(); final boolean result = requestMock.equals(obj); Assert.assertFalse(result); }
@Test public void testEquals_3() throws Exception { final boolean result = requestMock.equals(null); Assert.assertFalse(result); }