StorageInformation { public static Builder.RequireBucketName builder() { return bucketName -> blobId -> new StorageInformation(bucketName, blobId); } private  StorageInformation(BucketName bucketName, BlobId blobId); static Builder.RequireBucketName builder(); BucketName getBucketName(); BlobId getBlobId(); @Override final boolean equals(Object o); @Override final int hashCode();  }
@Test void constructorShouldThrowOnNullBucketName() { assertThatThrownBy(() -> StorageInformation.builder() .bucketName(null) .blobId(BLOB_ID)) .isInstanceOf(NullPointerException.class); }
@Test void constructorShouldThrowOnNullBlobId() { assertThatThrownBy(() -> StorageInformation.builder() .bucketName(BUCKET_NAME) .blobId(null)) .isInstanceOf(NullPointerException.class); }