ToStringConverter implements ConverterWrapper<String, Object> { @Override public String convertToAttribute(Object value) { return value instanceof LangString ? ((LangString) value).getValue() : value.toString(); }  @Override boolean supportsAxiomValueType(Class<?> type); @Override Object convertToAxiomValue(String value); @Override String convertToAttribute(Object value);  }
@Test void convertToAttributeReturnsStringValue() { final String value = "test"; assertEquals(value, sut.convertToAttribute(value)); }
@Test void convertToAttributeHandlesLangStringValue() { final String str = "test"; final LangString value = new LangString(str, "en"); assertEquals(str, sut.convertToAttribute(value)); }