ToLexicalFormConverter implements ConverterWrapper<String, Object> { @Override public String convertToAttribute(Object value) { assert value != null; return value instanceof LangString ? ((LangString) value).getValue() : value.toString(); }  @Override boolean supportsAxiomValueType(Class<?> type); @Override Object convertToAxiomValue(String value); @Override String convertToAttribute(Object value); static final ToLexicalFormConverter INSTANCE; }
@Test void convertToAttributeReturnsLexicalFormOfLangString() { final LangString langString = new LangString("test", "en"); assertEquals(langString.getValue(), sut.convertToAttribute(langString)); }