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

    File tempFile = File.createTempFile(this.getClass().getSimpleName(), ".xlf");
    tempFile.deleteOnExit();
    try (OutputStream os = new FileOutputStream(tempFile)) {
        res.write(os, WRITE_BUNDLE, new FilterOptions(Locale.JAPANESE));
        os.flush();
        assertThat(EXPECTED_WRITE_FILE, CompareMatcher.isIdenticalTo(tempFile));
    }
}