@Test
public void testLeftPad_StringIntString() {

    assertEquals(null, leftPad(null, 5, "-+"));
    assertEquals(null, leftPad(null, 5, null));
    assertEquals("     ", leftPad("", 5, " "));
    assertEquals("-+-+abc", leftPad("abc", 7, "-+"));
    assertEquals("-+~abc", leftPad("abc", 6, "-+~"));
    assertEquals("-+abc", leftPad("abc", 5, "-+~"));
    assertEquals("abc", leftPad("abc", 2, " "));
    assertEquals("abc", leftPad("abc", -1, " "));
    assertEquals("  abc", leftPad("abc", 5, null));
    assertEquals("  abc", leftPad("abc", 5, ""));
}