final CapabilityStorageItem item = new CapabilityStorageItem(
0, CAPABILITY_TYPE.toString(), true, null, oldProps
);
when(capabilityStorage.getAll()).thenReturn(ImmutableMap.of(capabilityIdentity("foo"), item));
final CapabilityDescriptor descriptor = mock(CapabilityDescriptor.class);
when(capabilityDescriptorRegistry.get(CAPABILITY_TYPE)).thenReturn(descriptor);
when(descriptor.version()).thenReturn(1);
final Map<String, String> newProps = Maps.newHashMap();
oldProps.put("p1", "v1-converted");
oldProps.put("p3", "v3");
when(descriptor.convert(oldProps, 0)).thenReturn(newProps);
underTest.load();
verify(capabilityStorage).getAll();
verify(descriptor, atLeastOnce()).version();