### Question:
XWikiDocumentConverter extends AbstractConverter<XWikiDocument> { private EntityReference convertToEntityReference(XWikiDocument document) { return document.getDocumentReference(); }  @Override G convert(Type targetType, Object sourceValue); @Override XWikiDocument convertToType(Type targetType, Object sourceValue);  }### Answer:
@Test void convertToEntityReference() { assertEquals(this.documentReference, documentConverter.convert(EntityReference.class, xWikiDocument)); }