@Test
public void testCleanAccesskeyFromJsonObjectAtEnd() {

    final String input = "{\"foo\":\"bar\",\"accesskey\":\"test\"}";
    // TODO: It would be nice to clean up the regex in question to not
    // have to return the trailing comma in the expected string below
    final String expected = "{\"foo\":\"bar\",}";
    final String result = StringUtils.cleanString(input);
    assertEquals(result, expected);
}