    @Test
    public void writeToFile() throws IOException {

        Path fileToWrite = Files.createTempFile(null, null);
        fileToWrite.toFile().deleteOnExit();
        RefactoringsWriters.getJMoveWriter().writeRefactoringsInTextForm(REFACTORINGS_TO_WRITE, fileToWrite);
        checkWrittenRefactorings(fileToWrite.toFile());
    }