### Question:
StringUtils { public static boolean isInsideString(char needle, String haystack) { int index = haystack.indexOf(needle); return index > 0 && index < haystack.length() - 1; } private  StringUtils(); static double getDifference(String first, String second); static boolean containsAny(String str, Iterable<String> pieces); static boolean isEmpty(String str); static String formatException(Throwable th); static boolean isInsideString(char needle, String haystack);  }### Answer:
@Test public void shouldCheckIfHasNeedleInWord() { assertThat(StringUtils.isInsideString('@', "@hello"), equalTo(false)); assertThat(StringUtils.isInsideString('?', "absent"), equalTo(false)); assertThat(StringUtils.isInsideString('-', "abcd-"), equalTo(false)); assertThat(StringUtils.isInsideString('@', "hello@example"), equalTo(true)); assertThat(StringUtils.isInsideString('@', "D@Z"), equalTo(true)); }