StringToConceptConverter implements Converter<String, Concept> { @Override public Concept convert(String s) { return StringUtils.isEmpty(s) ? null : Context.getConceptService().getConcept(Integer.valueOf(s)); }  @Override Concept convert(String s);  }
@Test public void convert_shouldConvertString() { Assert.assertNull(converter.convert(null)); Assert.assertNull(converter.convert("")); Assert.assertThat(converter.convert("5497"), is(Context.getConceptService().getConcept(5497))); }