### Question:
B2CreatedApplicationKey { @Override public boolean equals(Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } B2CreatedApplicationKey that = (B2CreatedApplicationKey) o; return Objects.equals(accountId, that.accountId) && Objects.equals(applicationKeyId, that.applicationKeyId) && Objects.equals(applicationKey, that.applicationKey) && Objects.equals(keyName, that.keyName) && Objects.equals(capabilities, that.capabilities) && Objects.equals(bucketId, that.bucketId) && Objects.equals(namePrefix, that.namePrefix) && Objects.equals(expirationTimestamp, that.expirationTimestamp) && Objects.equals(options, that.options); } @SuppressWarnings("unused") @B2Json.constructor( params = "accountId, " + "applicationKeyId, " + "applicationKey, " + "keyName, " + "capabilities, " + "bucketId, " + "namePrefix, " + "expirationTimestamp, " + "options" )  B2CreatedApplicationKey(String accountId,
                                   String applicationKeyId,
                                   String applicationKey,
                                   String keyName,
                                   TreeSet<String> capabilities,
                                   String bucketId,
                                   String namePrefix,
                                   Long expirationTimestamp,
                                   Set<String> options); String getAccountId(); @SuppressWarnings("unused") String getApplicationKeyId(); @SuppressWarnings("unused") String getApplicationKey(); @SuppressWarnings("unused") String getKeyName(); @SuppressWarnings("unused") TreeSet<String> getCapabilities(); @SuppressWarnings("unused") String getBucketId(); @SuppressWarnings("unused") String getNamePrefix(); @SuppressWarnings("unused") Long getExpirationTimestamp(); @SuppressWarnings("unused") Set<String> getOptions(); B2ApplicationKey toApplicationKey(); @Override boolean equals(Object o); @Override int hashCode();  }### Answer:
@Test public void testEquals() { final TreeSet<String> capabilities = new TreeSet<>(); capabilities.add(B2Capabilities.WRITE_FILES); capabilities.add(B2Capabilities.READ_FILES); final B2CreatedApplicationKey createdApplicationKey = new B2CreatedApplicationKey( "accountId", "appKeyId", "appKey", "keyName", capabilities, "bucketId", "namePrefix", 12345678L, B2TestHelpers.makeBucketOrApplicationKeyOptions() ); final String createdApplicationKeyJson = B2Json.toJsonOrThrowRuntime(createdApplicationKey); final B2CreatedApplicationKey convertedCreatedApplicationKey = B2Json.fromJsonOrThrowRuntime( createdApplicationKeyJson, B2CreatedApplicationKey.class); assertEquals(createdApplicationKey, convertedCreatedApplicationKey); }