### Question:
RetrieveDocumentSetRequestValidator implements Validator<EbXMLRetrieveDocumentSetRequest, ValidationProfile> { @Override public void validate(EbXMLRetrieveDocumentSetRequest request, ValidationProfile profile) { notNull(request, "request cannot be null"); for (RetrieveDocument document : request.getDocuments()) { String repoId = document.getRepositoryUniqueId(); metaDataAssert(repoId != null && !repoId.isEmpty(), REPO_ID_MUST_BE_SPECIFIED); String docId = document.getDocumentUniqueId(); metaDataAssert(docId != null && !docId.isEmpty(), DOC_ID_MUST_BE_SPECIFIED); if (profile.getProfile() == ValidationProfile.InteractionProfile.XCA) { hcValidator.validate(document.getHomeCommunityId()); } } }  @Override void validate(EbXMLRetrieveDocumentSetRequest request, ValidationProfile profile);  }### Answer:
@Test public void testGoodCase() throws XDSMetaDataException { validator.validate(transformer.toEbXML(request), profile); }