@Override
  public ParsedLine parse(final String line, final int cursor, final ParseContext context) {
    final String trimmed = line.trim();
    final int adjCursor = adjustCursor(line, trimmed, cursor);
    return delegate.parse(trimmed, adjCursor, context);
  }
@Test
  public void shouldTrimWhiteSpaceAndReturnLine() {
    expect(delegate.parse("line \t containing \t space", 0, UNSPECIFIED))
        .andReturn(parsedLine);
    replay(delegate);

    final ParsedLine line = parser.parse(" \t line \t containing \t space \t ", 0, UNSPECIFIED);

    assertThat(line, is(parsedLine));
  }