@Test
public void testLeftPad_StringIntChar() {

    assertEquals(null, leftPad(null, 5, ' '));
    assertEquals("     ", leftPad("", 5, ' '));
    assertEquals("  abc", leftPad("abc", 5, ' '));
    assertEquals("xxabc", leftPad("abc", 5, 'x'));
    assertEquals("\uffff\uffffabc", leftPad("abc", 5, '\uffff'));
    assertEquals("abc", leftPad("abc", 2, ' '));
    String str = leftPad("aaa", 10000, 'a');  // bigger than pad length
    assertEquals(10000, str.length());
}