### Question:
OAuth2TokenPersistence implements OAuth2Token { @Override public boolean equals(final Object obj) { if (obj == this) { return true; } if (!(obj instanceof OAuth2Token)) { return false; } final OAuth2Token other = (OAuth2Token) obj; if (this.gadgetUri == null) { if (other.getGadgetUri() != null) { return false; } } else if (!this.gadgetUri.equals(other.getGadgetUri())) { return false; } if (this.serviceName == null) { if (other.getServiceName() != null) { return false; } } else if (!this.serviceName.equals(other.getServiceName())) { return false; } if (this.user == null) { if (other.getUser() != null) { return false; } } else if (!this.user.equals(other.getUser())) { return false; } if (this.scope == null) { if (other.getScope() != null) { return false; } } else if (!this.scope.equals(other.getScope())) { return false; } if (this.type == null) { if (other.getType() != null) { return false; } } else if (!this.type.equals(other.getType())) { return false; } return true; } OAuth2TokenPersistence(); @Inject  OAuth2TokenPersistence(final OAuth2Encrypter encrypter); @Override boolean equals(final Object obj); byte[] getEncryptedMacSecret(); byte[] getEncryptedSecret(); long getExpiresAt(); String getGadgetUri(); long getIssuedAt(); String getMacAlgorithm(); String getMacExt(); byte[] getMacSecret(); Map<String, String> getProperties(); String getScope(); byte[] getSecret(); String getServiceName(); String getTokenType(); Type getType(); String getUser(); @Override int hashCode(); void setEncryptedMacSecret(final byte[] encryptedSecret); void setEncryptedSecret(final byte[] encryptedSecret); void setExpiresAt(final long expiresAt); void setGadgetUri(final String gadgetUri); void setIssuedAt(final long issuedAt); void setMacAlgorithm(final String algorithm); void setMacExt(final String macExt); void setMacSecret(final byte[] secret); void setProperties(final Map<String, String> properties); void setScope(final String scope); void setSecret(final byte[] secret); void setServiceName(final String serviceName); void setTokenType(final String tokenType); void setType(final Type type); void setUser(final String user); @Override String toString();  }### Answer:
@Test public void testEquals_2() throws Exception { final boolean result = OAuth2TokenPersistenceTest.accessToken .equals(OAuth2TokenPersistenceTest.refreshToken); Assert.assertFalse(result); }
@Test public void testEquals_3() throws Exception { Assert.assertFalse(OAuth2TokenPersistenceTest.accessToken.equals(new Object())); }
@Test public void testEquals_4() throws Exception { Assert.assertFalse(OAuth2TokenPersistenceTest.accessToken.equals(null)); }