ExpectIt library is yet another pure Java 1.6+ implementation of the Expect tool. It is designed to be simple, easy to use and extensible. Written from scratch. Here are the features:
Fluent-style API.
No third-party dependencies.
NIO based implementation using pipes and non-blocking API.
Extensible matcher framework. Support regular expressions and group operations.
Support multiple input streams.
Extensible filter framework to modify input, for example, to remove non-printable ANSI terminal characters.