}
@Test
void testToStorageMetadata() {
assertNull(ToStorageMetadata.INSTANCE.apply(null));
BlobStore blobStore = getBlobStore();
blobStore.createContainerInLocation(null, "test");
blobStore.createDirectory("test", "one");
Set<StorageMetadata> storageMetadataSet = ImmutableSet.<StorageMetadata>builder()
.addAll(transform(blobStore.list(), ToStorageMetadata.INSTANCE))
.build();
assertFalse(storageMetadataSet.isEmpty());
StorageMetadata representation = storageMetadataSet.iterator().next();
assertEquals("test", representation.getName());
}