@Test
public void testWrite() throws IOException, ResourceFilterException{

    File tempFile = File.createTempFile(this.getClass().getSimpleName(), ".xml");
    tempFile.deleteOnExit();
    try (OutputStream os = new FileOutputStream(tempFile)) {
        res.write(os, WRITE_BUNDLE, null);
        os.flush();
        assertTrue(ResourceTestUtil.compareFiles(EXPECTED_WRITE_FILE, tempFile, 1));
    }
}