@Test
public void shouldDeserializeStoragePoolV2() {

    StoragePoolSerializationAdapter adapter = new StoragePoolSerializationAdapter();
    JsonParser parser = new JsonParser();
    StoragePool storagePool = adapter.deserialize(parser.parse(storagePoolV2Json), null, null);
    assertThat(storagePool.getType(), is(equalTo(ResourceCategory.RC_STORAGE_POOL_V200)));
    assertThat(storagePool.getAllocatedCapacityDetails().getSnapshotAllocatedCapacity(), is(notNullValue()));
    assertThat(storagePool.getAllocatedCapacityDetails().getVolumeAllocatedCapacity(), is(notNullValue()));
}