TokenTypeExpression extends NativeExpression implements Matcher { @Override public String toString() { return "TokenType " + type; } TokenTypeExpression(TokenType type); @Override void execute(Machine machine); @Override String toString();  }
@Test public void should_compile() { assertThat(expression.compile(new CompilationHandler())).containsOnly(expression); assertThat(expression.toString()).isEqualTo("TokenType " + type); }