ProfileReference { @JsonValue public String getCompactRepresentation() { return type.asJsonValue() + ":" + this.name; } @Deprecated  ProfileReference();  ProfileReference(ProfileType type, String name); @JsonCreator static ProfileReference parse(String raw); ProfileType getType(); String getName(); @JsonValue String getCompactRepresentation();  }
@Test public void testSerialize() throws Exception { assertEquals("hardwaretype:My Simple Hardware", new ProfileReference(ProfileType.HARDWARETYPE, "My Simple Hardware").getCompactRepresentation()); }