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

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