void (String verificationFileName) { String START_FOLD = "<fold\\stext='[^']*'(\\sexpand='[^']*')*>"; String END_FOLD = "</fold>"; String expectedContent; File file = new File(verificationFileName); try { expectedContent = FileUtil.loadFile(file); } catch (IOException e) { throw new RuntimeException(e); } Assert.assertNotNull(expectedContent); expectedContent = StringUtil.replace(expectedContent, "\r", ""); String cleanContent = expectedContent.replaceAll(START_FOLD, "").replaceAll(END_FOLD, ""); myFixture.configureByText(file.getName(), cleanContent); String actual = ((CodeInsightTestFixtureImpl)myFixture).getFoldingDescription(true); Assert.assertEquals(expectedContent, actual); }