new HardwareProfileUnmarshaller().unmarshall(inputStream, profile);
assertNotNull(profile);
assertEquals(HardwareProfile2Response.id, profile.getId());
assertEquals(HardwareProfile2Response.propMemValue + ' ' + HardwareProfile2Response.propMemUnit,
profile.getMemory());
Property property = profile.getNamedProperty(Property.Names.MEMORY);
assertNotNull(property);
assertEquals(HardwareProfile2Response.propMemRangeFirst, property.getRange().getFirst());
assertEquals(HardwareProfile2Response.propMemRangeLast, property.getRange().getLast());
assertEquals(HardwareProfile2Response.propStorageValue + ' ' + HardwareProfile2Response.propStorageUnit,
profile.getStorage());
property = profile.getNamedProperty(Property.Names.STORAGE);
assertNotNull(property);
assertNotNull(property.getEnums());
assertEquals(2, property.getEnums().size());
assertEquals(HardwareProfile2Response.propStorageEnum1, property.getEnums().get(0));
assertEquals(HardwareProfile2Response.propStorageEnum2, property.getEnums().get(1));
assertEquals(HardwareProfile2Response.propCPUValue, profile.getCPU());
assertEquals(HardwareProfile2Response.propArchValue, profile.getArchitecture());
}