TokensBridgeExpression extends NativeExpression implements Matcher { @Override public String toString() { return "Bridge[" + from + "," + to + "]"; } TokensBridgeExpression(TokenType from, TokenType to); @Override void execute(Machine machine); @Override String toString();  }
@Test public void should_compile() { assertThat(expression.compile(new CompilationHandler())).containsOnly(expression); assertThat(expression.toString()).isEqualTo("Bridge[" + fromType + "," + toType + "]"); }