@BeforeClass public static void createTestFiles() throws IOException { final boolean result = TEST_FILE_DIRECTORY.mkdir() && TEST_FILE.createNewFile() && TEST_FILE_BAD_EXT.createNewFile(); if (!result) { throw new RuntimeException("unable to initialize test suite"); } }