private static boolean test6_1() throws FileNotFoundException {

		String input = "new\n" + "pick up key\n" + "lock cell door\n"
				+ "lock cell door with key\n" + "open door\n"
				+ "open cell door\n" + "go through door\n"
				+ "unlock cell door\n" + "wait\n"
				+ "unlock cell door with key\n" + "open door\n"
				+ "go through cell door\n" + "quit\n" + "yes\n";

		HashMap<Integer, String> output = new HashMap<Integer, String>();

		boolean passed = true;
		try {
			in = new ByteArrayInputStream(input.getBytes());
			System.setIn(in);
			out = new PrintStream("testing.txt");
			System.setOut(out);
			Game.main(null);
		} catch (ExitException se) {

		} catch (Exception e) {
			System.setOut(stdout);
			System.out.println("Error: ");
			e.printStackTrace();
			passed = false;
		} finally {
			System.setOut(stdout);
			@SuppressWarnings("resource")
			Scanner sc = new Scanner(new File("testing.txt"));
			ArrayList<String> testOutput = new ArrayList<String>();
			while (sc.hasNextLine()) {
				testOutput.add(sc.nextLine());
			}

			output.put(testOutput.size() - 36,
					">> You need to use a key to lock this cell door.");
			output.put(testOutput.size() - 34, ">> You lock the cell door.");
			output.put(testOutput.size() - 32, ">> The door is locked.");
			output.put(testOutput.size() - 30, ">> The door is locked.");
			output.put(testOutput.size() - 28, ">> The cell door is locked.");
			output.put(testOutput.size() - 26,
					">> You need to use a key to unlock the cell door.");
			output.put(testOutput.size() - 22, ">> You unlock the cell door.");
			output.put(testOutput.size() - 20, ">> The door swings open.");
			output.put(testOutput.size() - 18,
					">> You walk through the cell door.");

			output.put(
					testOutput.size() - 17,
					"A lone torch flickers next to you, and the hallway stretches off to darkness to the north and south.");
			output.put(testOutput.size() - 16,
					"In the wall next to you is a cell door.");

			if (passed) {
				for (Map.Entry<Integer, String> entry : output.entrySet()) {
					if (!testOutput.get(entry.getKey())
							.equals(entry.getValue())) {
						passed = false;
						System.out.println("test6 failed: Line "
								+ entry.getKey());
						System.out.println("\tExpected: " + entry.getValue());
						System.out.println("\tReceived: "
								+ testOutput.get(entry.getKey()));
					}
				}
				if (passed) {
					return true;
				}
			} else {
				System.out.println("test6 failed: error");
			}
		}
		return false;
	}