@Test
public void endsWithChar() {

    assertFalse(StringUtil.endsWithChar(null, ' '));
    assertFalse(StringUtil.endsWithChar("xxxxx", ' '));
    assertTrue(StringUtil.endsWithChar("xxx     ", ' '));
    assertFalse(StringUtil.endsWithChar("xxxxb", 'x'));
    assertTrue(StringUtil.endsWithChar("xxxxx", 'x'));
}