.processors(ImmutableList.of(Processor.builder().cores(4).speed(2).build()))
.volumes(ImmutableList.of(Volume.builder().device("/dev/tst1").size(100f).bootDevice(true).build()))
.build();
Gson gson = new GsonBuilder().create();
JsonElement json = gson.toJsonTree(hardware);
assertNotNull(json);
assertEquals("test-hardware-profile", json.getAsJsonObject().get("id").getAsString());
assertEquals("4.0", json.getAsJsonObject().get("processors").getAsJsonArray().get(0).getAsJsonObject().get("cores").getAsString());
assertEquals("2.0", json.getAsJsonObject().get("processors").getAsJsonArray().get(0).getAsJsonObject().get("speed").getAsString());
}