@Test
    public void testGetDirectoryOfInitalisationFileOnFile() throws IOException {
        File file = new File("/tmp/grammarwindowtest.txt");
        file.createNewFile();

        window.initialisationFileTextField.setText("/tmp/grammarwindowtest.txt");
        assertEquals("/tmp", window.getDirectoryOfInitalisationFile());

        file.delete();
    }