driver.assertChars("foo").assertFlush().assertEmpty();
assertEquals("foo", getCurrentLine());
}
public void testCompleteSingle2() {
shell.setCompleter(new SyncCompleter() {
@Override
public CompletionMatch complete(String prefix) {
Completion.Builder builder = Completion.builder("");
builder.add("foo", true);
return new CompletionMatch(Delimiter.EMPTY, builder.build());