@Test
public void testAuthorValidation() {

    request.getSubmissionSet().getAuthors().clear();
    EbXMLProvideAndRegisterDocumentSetRequest ebXml = transformer.toEbXML(request);
    new ObjectContainerValidator().validate(ebXml, profile);
    Author author = new Author();
    author.getAuthorRole().add("clown");
    request.getSubmissionSet().setAuthor(author);
    ebXml = transformer.toEbXML(request);
    boolean failed = false;
    try {
        new ObjectContainerValidator().validate(ebXml, profile);
    } catch (XDSMetaDataException e) {
        failed = true;
    }
    assertTrue(failed);
}