### Question:
ArrayChar2 { public boolean contains(String origin, String word) { boolean done = true; char[] aOrigin = origin.toCharArray(); char[] aWord = word.toCharArray(); for (int aOriginIndex = 0; aOriginIndex <= aOrigin.length - aWord.length; aOriginIndex++) { for (int aWordIndex = 0; aWordIndex < aWord.length; aWordIndex++) { if (aOrigin[aOriginIndex + aWordIndex] != aWord[aWordIndex]) { done = false; break; } else { done = true; } } if (done) { break; } } return done; }  boolean contains(String origin, String word);  }### Answer:
@Test public void whenOriginWordContainsWordThenTrue() { ArrayChar2 word = new ArrayChar2(); boolean result = word.contains("Сумасшествие", "шест"); assertThat(result, is(true)); }
@Test public void whenOriginWordNotContainsWordThenFalse() { ArrayChar2 word = new ArrayChar2(); boolean result = word.contains("Проверка", "Прок"); assertThat(result, is(false)); }