XmlTramoRequest extends XmlTramoAtomicRequest { public List<String> getOutputFilter() { if (outputFilter == null) { outputFilter = new ArrayList<>(); } return this.outputFilter; }  XmlProcessingContext getContext(); void setContext(XmlProcessingContext value); List<String> getOutputFilter(); boolean getFlat(); void setFlat(Boolean flat);  }
@Test public void testValidation() throws FileNotFoundException, JAXBException, IOException, SAXException { XmlTramoRequest request = new XmlTramoRequest(); request.defaultSpecification = "TRfull"; 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.validate(source); }