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