@Test
public void testOutputFile() {

    final File testOutputDir = new File(testOutputBaseDir, "testOutputFile");
    testOutputDir.mkdirs();
    final File testOutputFile = new File(testOutputDir, "out.txt");
    if (testOutputFile.exists()) {
        testOutputFile.delete();
    }
    Main.main(new String[]{"-c", cacheBaseDir.getPath(), "-f", "src/test/resources/opears/simpleEcho", "-o", testOutputFile.getPath()});
    assertTrue("testOutputFile exists", testOutputFile.exists());
    final File testOutputJson = new File(testOutputDir, "out.json");
    if (testOutputJson.exists()) {
        testOutputJson.delete();
    }
    Main.main(new String[]{"-c", cacheBaseDir.getPath(),
            "-f", "src/test/resources/opears/simpleEcho",
            "-j", "-o", testOutputJson.getPath()});
    assertTrue("testOutputJson exists", testOutputJson.exists());
}