### Question:
ProviderConverter extends StringValueConverter<Provider> { @Override public Provider convertToModel(String id, Map<String, Object> jsonMap) throws IOException { Provider p = new Provider(); p.setName(id); updateValue(p, jsonMap); return p; }  @Override String getId(Provider jpaEntity); @Override String getEntityIdFieldName(); @Override String getValue(Provider jpaEntity); @Override void setValue(Provider jpaEntity, String value); @Override Provider convertToModel(String id, Map<String, Object> jsonMap);  }### Answer:
@Test public void convertToModel() throws IOException { ProviderConverter converter = new ProviderConverter(); Map<String, Object> data = new HashMap<>(); data.put(ProviderService.NAME, "jbossorg"); data.put(ProviderService.SUPER_PROVIDER, true); Provider p = converter.convertToModel("jbossorg", data); assertEquals("jbossorg", p.getName()); TestUtils.assertJsonContent("{\"" + ProviderService.NAME + "\":\"jbossorg\",\"" + ProviderService.SUPER_PROVIDER + "\":true}", p.getValue()); }