@Test
public void testInfixr() {

  expect(binaryOp.apply(1, 2)).andReturn(12);
  expect(binaryOp.apply(4, 12)).andReturn(412);
  replay();
  Parser<Integer> parser = INTEGER.infixr(string("->").retn(binaryOp));
  assertEquals((Object) 412, parser.parse("4->1->2", mode));
}