@Test
void testToHardware() {
assertNull(ToHardware.INSTANCE.apply(null));
ComputeService compute = getCompute();
Set<Hardware> hardwareSet = ImmutableSet.<Hardware>builder()
.addAll(transform(compute.listHardwareProfiles(), ToHardware.INSTANCE))
.build();
assertFalse(hardwareSet.isEmpty());
for (Hardware representation : hardwareSet) {
assertTrue(representation.getRam() > 0);
}