### Question:
XWikiUserUserReferenceResolver implements UserReferenceResolver<XWikiUser> { @Override public UserReference resolve(XWikiUser xwikiUser, Object... parameters) { return this.documentReferenceUserReferenceResolver.resolve(xwikiUser.getUserReference(), parameters); }  @Override UserReference resolve(XWikiUser xwikiUser, Object... parameters);  }### Answer:
@Test void resolve() { DocumentReference documentReference = new DocumentReference("wiki", "space", "page"); UserReference userReference = this.resolver.resolve(new XWikiUser(documentReference)); verify(this.documentReferenceUserReferenceResolver).resolve(documentReference); }