### Question:
StringUtils { public static boolean endsWithIgnoreCase(String str, String suffix) { int suffixLength = suffix.length(); return str.regionMatches(true, str.length() - suffixLength, suffix, 0, suffixLength); } private  StringUtils(); static boolean startsWithIgnoreCase(String str, String prefix); static boolean endsWithIgnoreCase(String str, String suffix);  }### Answer:
@Test public void testEndsWithIgnoreCase() throws Exception { assertTrue(StringUtils.endsWithIgnoreCase("This Is A Sample Text", "a sample text")); assertTrue(StringUtils.endsWithIgnoreCase("THIS IS A SAMPLE TEXT", "a Sample Text")); assertTrue(StringUtils.endsWithIgnoreCase("this is a sample text", "A SAMPLE TEXT")); }