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

    File tempFile = File.createTempFile(this.getClass().getSimpleName(), ".properties");
    tempFile.deleteOnExit();
    try (OutputStream os = new FileOutputStream(tempFile); InputStream is = new FileInputStream(INPUT_FILE)) {
        res.merge(is, os, WRITE_BUNDLE, new FilterOptions(Locale.ENGLISH));
        os.flush();
        assertTrue(ResourceTestUtil.compareFiles(EXPECTED_MERGE_FILE, tempFile));
    }
}