@Test
public void testToString_unexpected() {

  expect(error.getFailureMessage()).andReturn(null).atLeastOnce();
  expect(error.getExpected()).andReturn(Arrays.<String>asList());
  expect(error.getUnexpected()).andReturn("foo").atLeastOnce();
  replay();
  assertEquals("line 3, column 5:\nunexpected foo."
      , ErrorReporter.toString(error, new Location(3, 5)));
}