@Test
public void shouldDeserializeStorageCapabilitiesV4() {

    JsonParser parser = new JsonParser();
    JsonElement jsonElement = parser.parse(STORAGE_CAPABILITIES_V4);
    StorageCapabilities capabilities = deserializer.deserialize(jsonElement, StorageCapabilities.class, null);
    assertThat(capabilities, is(notNullValue()));
    assertThat(capabilities.getRaidLevels(), containsInAnyOrder(RaidLevel.values()));
    assertThat(capabilities.getControllerModes(), containsInAnyOrder(ControllerMode.values()));
    assertThat(capabilities.getDriveTechnologies(), containsInAnyOrder(DriveTechnology.values()));
    assertThat(capabilities.getMaximumDrives(), is(Integer.valueOf(4)));
}