### Question:
ContributorConverter extends StringValueConverter<Contributor> { @Override public Contributor convertToModel(String id, Map<String, Object> jsonMap) throws IOException { Contributor c = new Contributor(); c.setId(id); updateValue(c, jsonMap); return c; }  @Override String getId(Contributor jpaEntity); @Override String getEntityIdFieldName(); @Override String getValue(Contributor jpaEntity); @Override void setValue(Contributor jpaEntity, String value); @Override Contributor convertToModel(String id, Map<String, Object> jsonMap);  }### Answer:
@Test public void convertToModel() throws IOException { ContributorConverter converter = new ContributorConverter(); Map<String, Object> data = new LinkedHashMap<String, Object>(); data.put("code", "John Doe<john@doe.com>"); List<String> emails = new ArrayList<String>(); emails.add("john@doe.com"); data.put("email", emails); data.put("name", "John Doé"); Contributor c = converter.convertToModel("10", data); TestUtils.assertJsonContent( "{\"code\": \"John Doe<john@doe.com>\", \"email\":[\"john@doe.com\"], \"name\": \"John Doé\"}", c.getValue()); }