### Question:
Utils { public static boolean endsWith(CharSequence seq, String end) { if (end == null) return false; int seqLen = seq.length(); int endLen = end.length(); if (seqLen < endLen) return false; for (int i = 1; i <= endLen; i++) { char s = seq.charAt(seqLen - i); char e = end.charAt(endLen - i); if (s != e) return false; } return true; }  static boolean equal(Object obj1, Object obj2); static boolean in(Object toFind, Object... values); static boolean empty(Object... arr); static Object first(List list); static Object last(List list); @SuppressWarnings("unchecked") static T add(T list, Object... items); static boolean endsWith(CharSequence seq, String end); static boolean startsWith(CharSequence seq, String start); static String implode(String glue, Object... pieces); static List<String> explode(String delimiter, String... pieces); static List<String> split(String string, char splitOn, char... quoteChars); static String substringBefore(String string, String breakBefore); static String substringAfter(String string, String breakAfterLast); static ArrayListValuedHashMap addToMap(ArrayListValuedHashMap<String, String> multiMap, String... kvPairs); static M addToMap(M map, String... keyValuePairs); static ArrayList asList(Object... objects); static HashSet asSet(Object... objects); @SuppressWarnings("unchecked") static HashMap asMap(Object... keyValuePairs); static boolean containsToken(String findThisToken, String inThisString); static String dequote(String str); static String dequote(String str, char[] quoteChars); static BigDecimal toDollarAmount(double amount); static int roundUp(int num, int divisor); static boolean atob(Object str); static int atoi(Object str); static long atol(Object str); static float atof(Object str); static double atod(Object str); static String slugify(String str); static String sha1(byte[] bytes); static String md5(byte[] bytes); static String hash(byte[] bytes, String algorithm); static long time(); static Date parseIso8601(String date); static String formatIso8601(Date date); static String formatDate(Date date, String format); static Date date(String date, String format); static Date date(String date); static boolean testCompare(String expected, String actual); static Throwable getCause(Throwable t); static void error(String message); static void rethrow(Throwable error); static void rethrow(String message, Throwable error); static void sleep(long milliseconds); static String getShortCause(Throwable t); static String getShortCause(Throwable t, int lines); static List<String> getStackTraceLines(Throwable stackTrace); static String getStackTraceString(Throwable stackTrace); static String[] splitLines(String text); static String limitLines(String text, int limit); static Field getField(String fieldName, Class clazz); static List<Field> getFields(Class clazz); static Method getMethod(Class clazz, String name); static Object getProperty(String name, Object object); static String read(String fileOrUrl); static String read(InputStream in); static String read(File file); static void write(File file, String text); static void write(String file, String text); static void pipe(InputStream in, OutputStream out); static File createTempFile(String fileName); static InputStream findInputStream(String fileOrUrl); static boolean isWildcard(String str); static boolean wildcardMatch(String wildcard, String string); static String wildcardToRegex(String wildcard); static LinkedHashMap<String, String> parseQueryString(String query); static String findProperty(String... names); static String getProperty(String name); static Object cast(String type, Object value); static void close(Object... toClose);  }### Answer:
@Test public void endsWith() { assertTrue(Utils.endsWith("", "")); assertTrue(Utils.endsWith("asdf123", "123")); assertFalse(Utils.endsWith("asdf123", "456")); assertFalse(Utils.endsWith("9294", "92949294")); assertTrue(Utils.endsWith("9294", "")); assertFalse(Utils.endsWith("http: assertTrue(Utils.endsWith("http: }