AnyTokenExpression extends NativeExpression implements Matcher { @Override public String toString() { return "AnyToken"; } private  AnyTokenExpression(); @Override void execute(Machine machine); @Override String toString(); static final AnyTokenExpression INSTANCE; }
@Test public void should_compile() { assertThat(expression.compile(new CompilationHandler())).containsOnly(expression); assertThat(expression.toString()).isEqualTo("AnyToken"); }