EnumConverter implements ConverterWrapper<E, Object> { @Override public Object convertToAxiomValue(E value) { return value.toString(); } EnumConverter(Class<E> enumType); @Override boolean supportsAxiomValueType(Class<?> type); @Override Object convertToAxiomValue(E value); @Override E convertToAttribute(Object value);  }
@Test public void convertToAxiomValueTransformsEnumValueToString() { final EnumConverter<OWLClassM.Severity> sut = new EnumConverter<>(OWLClassM.Severity.class); final Object result = sut.convertToAxiomValue(OWLClassM.Severity.HIGH); assertTrue(result instanceof String); assertEquals(OWLClassM.Severity.HIGH.toString(), result); }