@Test
public void testRightPad_StringIntString() {

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