@Test
public void testEquals() {

    final B2Bucket bucket = new B2Bucket(
            ACCOUNT_ID,
            bucketId(1),
            BUCKET_NAME,
            BUCKET_TYPE,
            bucketInfo,
            b2CorsRules,
            lifecycleRules,
            optionsSet,
            1);
    final String bucketJson = B2Json.toJsonOrThrowRuntime(bucket);
    final B2Bucket convertedBucket = B2Json.fromJsonOrThrowRuntime(bucketJson, B2Bucket.class);
    assertEquals(bucket, convertedBucket);
}