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

    File tempFile = File.createTempFile(this.getClass().getSimpleName(), ".properties");
    JavaPropertiesResource res = new JavaPropertiesResource(Encoding.ISO_8859_1, MessagePatternEscape.ALL);
    tempFile.deleteOnExit();
    try (OutputStream os = new FileOutputStream(tempFile)) {
        res.write(os, WRITE_BUNDLE_ALL, null);
        os.flush();
        // Ignore first line in both the files (first line empty in expected, first line contains timestamp in actual) 
        assertTrue(ResourceTestUtil.compareFiles(EXPECTED_WRITE_FILE_ALL, tempFile, 1));
    }
}