@Test
public void testTranslate() throws Exception {

    String s = "16314";
    assertEquals(StringUtils.translate(s, "123456", "abcdef"), "afcad");
    assertEquals(StringUtils.translate(s, "123456", "abcd"), "acad");
}