@Test
public void testGetPreviewPlan() {

	try {
		PackagedProgram prog = new PackagedProgram(new File(CliFrontendTestUtils.getTestJarPath()));
		
		final PrintStream out = System.out;
		final PrintStream err = System.err;
		try {
			System.setOut(new PrintStream(new NullOutputStream()));
			System.setErr(new PrintStream(new NullOutputStream()));
			
			Assert.assertNotNull(prog.getPreviewPlan());
		}
		finally {
			System.setOut(out);
			System.setErr(err);
		}
	}
	catch (Exception e) {
		System.err.println(e.getMessage());
		e.printStackTrace();
		Assert.fail("Test is erroneous: " + e.getMessage());
	}
}