### Question:
AttributeSort implements Serializable { String getValue() { return value; } AttributeSort(String value);   AttributeSort(String value, boolean linkType); @Override String toString();  }### Answer:
@Test public void testDeserializePlain() throws Exception { final AttributeSort attributeSort = OBJECT_MAPPER.readValue("\"pk\"", AttributeSort.class); assertThat(attributeSort, is(notNullValue())); assertThat(attributeSort.getValue(), is("pk")); }
@Test public void testDeserializeLink() { final AttributeSort attributeSort = readObjectFromResource("/md/attributeSort.json", AttributeSort.class); assertThat(attributeSort, is(notNullValue())); assertThat(attributeSort.getValue(), is("/gdc/md/PROJECT_ID/obj/1806")); }