Matrix implements Command<CommandInvocation> { public Matrix() { } Matrix();  Matrix(int speed, boolean async, boolean knock);  Matrix(InputStream inputStream, List<String> knockLines);  Matrix(InputStream inputStream, List<String> knockLines, int speed, boolean async); @Override CommandResult execute(CommandInvocation commandInvocation); void processOperation();  }
@Test public void testMatrix() throws CommandRegistryException { Matrix matrix = new Matrix(); CommandRegistry registry = AeshCommandRegistryBuilder.builder() .command(matrix) .create(); Settings settings = SettingsBuilder.builder() .connection(new TestConnection()) .commandRegistry(registry) .logging(true) .build(); ReadlineConsole console = new ReadlineConsole(settings); console.setPrompt(new Prompt("")); }