@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 shouldAdjustCursorWhenInTrimmedResult() {
    expect(delegate.parse(anyString(), eq(2), anyObject()))
        .andReturn(parsedLine);
    replay(delegate);

    parser.parse("  line  ", 4, UNSPECIFIED);
  }