// File xml = new File(filePath);
ResourceLoader resource = new ResourceLoader(filePath);
Document document = db.parse(resource.getInputStream());
Binder<Node> binder = getJAXBContext().createBinder();
binder.setProperty(Marshaller.JAXB_FORMATTED_OUTPUT, true);
InputTestData testData = (InputTestData) binder.unmarshal(document);
updateTestMethods(testData, actualData);
binder.updateXML(testData);
TransformerFactory tf = TransformerFactory.newInstance();
Transformer t = tf.newTransformer();
t.transform(new DOMSource(document), new StreamResult(resource.getFileOutputStream()));