public class ArgumentCompleterTest
extends ConsoleReaderTestSupport
{
@Test
public void test1() throws Exception {
console.addCompleter(new ArgumentCompleter(new StringsCompleter("foo", "bar", "baz")));
assertBuffer("foo foo ", new Buffer("foo f").tab());
assertBuffer("foo ba", new Buffer("foo b").tab());
assertBuffer("foo ba", new Buffer("foo ba").tab());
assertBuffer("foo baz ", new Buffer("foo baz").tab());