+ FileUtilMock.mock_setInst();
+ FileMock configFileMock = FileUtilMock.mock_getInst().mock_newFile(CONFIG_FILE_NAME);
+ FileUtilMock.mock_getInst().mock_setReadable(configFileMock, false);
+
+ String[] params = { "-c", CONFIG_FILE_NAME };
+ try {
+ runWithParams(params);
+ fail("Should have thrown an IOException");
+ }
+ catch (IOException exc) {
+ // This is the success path
+ }