@Test
public void testValidation() throws FileNotFoundException, JAXBException, IOException, SAXException {

    XmlTramoSeatsRequest request = new XmlTramoSeatsRequest();
    request.defaultSpecification = "RSAfull";
    request.series = new XmlTs();
    XmlTsData.MARSHALLER.marshal(Data.X, request.series);
    request.getOutputFilter().add("arima.*");
    request.getOutputFilter().add("likelihood.*");
    request.getOutputFilter().add("residuals.*");
    request.getOutputFilter().add("*_f");
    JAXBContext jaxb = JAXBContext.newInstance(request.getClass());
    JAXBSource source = new JAXBSource(jaxb, request);
    Validator validator = Schemas.TramoSeats.newValidator();
    //validator.setErrorHandler(new TestErrorHandler());
    validator.validate(source);
}