### Question:
B2CreatedApplicationKey { public B2ApplicationKey toApplicationKey() { return new B2ApplicationKey( accountId, applicationKeyId, keyName, capabilities, bucketId, namePrefix, expirationTimestamp, 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 testToApplicationKey() { final TreeSet<String> capabilities = new TreeSet<>(); capabilities.add(B2Capabilities.WRITE_FILES); assertEquals( new B2ApplicationKey( "accountId", "appKeyId", "keyName", capabilities, "bucketId", "namePrefix", 12345678L, B2TestHelpers.makeBucketOrApplicationKeyOptions() ), new B2CreatedApplicationKey( "accountId", "appKeyId", "appKeySecret", "keyName", capabilities, "bucketId", "namePrefix", 12345678L, B2TestHelpers.makeBucketOrApplicationKeyOptions() ).toApplicationKey() ); }