@Test
public void shouldSerializeStoragePoolV2() throws ParseException {

    StoragePoolSerializationAdapter adapter = new StoragePoolSerializationAdapter();
    StoragePool storagePool = this.buildStoragePoolV2();
    JsonObject serializedStoragePool = adapter.serialize(storagePool, null, null).getAsJsonObject();
    assertThat(serializedStoragePool.getAsJsonPrimitive("type").getAsString(),
            is(equalTo(ResourceCategory.RC_STORAGE_POOL_V200)));
    assertThat(serializedStoragePool.get(StoragePool.ALLOCATED_CAPACITY_FIELD).isJsonPrimitive(),
            is(equalTo(Boolean.FALSE)));
}