    @Test
    public void testStripEnd() {

        Assert.assertEquals("foo", StringUtils.stripEnd("foo!", "!"));
        Assert.assertEquals("  foo", StringUtils.stripEnd("  foo  ", "  "));
        Assert.assertEquals("!", StringUtils.stripEnd("!", ""));
        Assert.assertEquals("#", StringUtils.stripEnd("# ", null));
        Assert.assertEquals("", StringUtils.stripEnd("", "!!"));
        Assert.assertEquals("1234", StringUtils.stripEnd("1234.0", ".0"));
    }