@Test
public void testCleanPasswordFromRequestStringMatchedAtEndSingleQuote() {

    final String input = "'username=foo&password=bar'";
    final String expected = "'username=foo'";
    final String result = StringUtils.cleanString(input);
    assertEquals(result, expected);
}