ProvideAndRegisterDocumentSetRequestValidator implements Validator<EbXMLProvideAndRegisterDocumentSetRequest, ValidationProfile> { @Override public void validate(EbXMLProvideAndRegisterDocumentSetRequest request, ValidationProfile profile) { notNull(request, "request cannot be null"); submitObjectsRequestValidator.validate(request, profile); validateDocuments(request); }  @Override void validate(EbXMLProvideAndRegisterDocumentSetRequest request, ValidationProfile profile);  }
@Test public void testValidateGoodCase() { validator.validate(transformer.toEbXML(request), profile); }
@Test public void testRepositoryUniqueIdIsNotNecessary() { docEntry.setRepositoryUniqueId(null); validator.validate(transformer.toEbXML(request), profile); }