### Question:
DocumentConverter extends AbstractConverter<Document> { private XWikiDocument convertToXWikiDocument(Document document) { return document.getDocument(); }  @Override G convert(Type targetType, Object sourceValue); @Override Document convertToType(Type targetType, Object sourceValue);  }### Answer:
@Test void convertToXWikiDocument() { assertSame(this.xWikiDocument, documentConverter.convert(XWikiDocument.class, document)); }