StringUtil { public static boolean endsWithColon(final String string) { return endsWith(string, ':'); } private  StringUtil(); static String convertToSingleSpace(final String input); static String getFirstSubstring(final String inputString,
            final String startingWith, final String endingWith); static String getFirstSubstring(final String inputString,
            final String startingWith, final String endingWith,
            final int searchFromIndex); static String[] getAllSubstrings(final String inputString,
            final String startingWith, final String endingWith); static int startIndexOf(final String inputString,
            final String startingWith, final String endingWith); static int endIndexOf(final String inputString,
            final String startingWith, final String endingWith); static int startIndexOf(final String inputString,
            final String startingWith, final String endingWith,
            final int searchFromIndex); static int endIndexOf(final String inputString,
            final String startingWith, final String endingWith,
            final int searchFromIndex); static int[] startIndexAndEndIndexOf(final String inputString,
            final String startingWith, final String endingWith); static int[] startIndexAndEndIndexOf(final String inputString,
            final String startingWith, final String endingWith,
            final int searchFromIndex); static int[][] startAndEndIndexesOf(final String inputString,
            final String startingWith, final String endingWith); static String[] cloneArray(final String[] inputArray); static boolean isEqual(final String... strings); static boolean isEqual(final String string1, final String string2); static boolean startsWithWhitespace(final String value); static boolean endsWithWhitespace(final String value); static String[] split(final String string, final char delim); static String[] splitBySpace(final String string); static String[] splitByComma(final String string); static String[] splitBySemicolon(final String string); static String[] splitByColon(final String string); static boolean endsWithSpace(final String string); static boolean endsWithColon(final String string); static boolean startsWithSpace(final String string); static boolean containsSpace(final String string); static boolean containsWhitespace(final String string); static boolean containsMinus(final String string); static boolean containsPlus(final String string); static String join(final char delimiter, final char prefix,
            final char suffix, final String... items); static String join(final char delimiter, final String... items); static String join(final char delimiter,
            final Collection<String> items); static boolean isBlank(final String s); static String strip(final String s);  }
@Test public void testEndsWithColon() throws Exception { assertFalse(StringUtil.endsWithColon("")); assertFalse(StringUtil.endsWithColon(":something")); assertFalse(StringUtil.endsWithColon("sdfsf:something")); assertTrue(StringUtil.endsWithColon("something:")); assertTrue(StringUtil.endsWithColon("something :")); assertTrue(StringUtil.endsWithColon("some+thing :")); }