### Question:
StringPropertyParser implements PropertyParser { @Override public Comparable<?> parseForSort(String value) { String parsedValue = parse(value); return parsedValue == null ? null : StringUtils.stripToEmpty(parsedValue); }  @Override String parse(String value); @Override Comparable<?> parseForSort(String value);  }### Answer:
@Test public void parseForSortReturnsTheInputValue() { String input = "input"; Object output = instance.parseForSort(input); assertThat(output, is(equalTo(input))); }
@Test public void parseForSortRemovesTheTrailingWhitespaces() throws JsonProcessingException { String input = "input "; Object output = instance.parseForSort(input); assertThat(output, is("input")); }
@Test public void parseForSortRemovesTheLeadingWhitespaces() throws JsonProcessingException { String input = " input"; Object output = instance.parseForSort(input); assertThat(output, is(is("input"))); }