}
private void assertHistory(String expected, ConsoleReader consoleReader) {
History history = consoleReader.getHistory();
history.previous();
assertEquals(expected, history.current());
}
@Test
public void testStoringHistoryWithExpandEventsOff() throws Exception {
ConsoleReader reader = createConsole("foo ! bar\r\n");