### Question:
ArrayChar { public boolean startWith(String prefix) { boolean done = true; char[] value = prefix.toCharArray(); for (int i = 0; i < value.length; i++) { if (this.data[i] != value[i]) { done = false; break; } } return done; } ArrayChar(String line); boolean startWith(String prefix);  }### Answer:
@Test public void whenStartWithPrefixThenTrue() { ArrayChar word = new ArrayChar("Hello"); boolean result = word.startWith("He"); assertThat(result, is(true)); }
@Test public void whenNotStartWithPrefixThenFalse() { ArrayChar word = new ArrayChar("Hello"); boolean result = word.startWith("Hi"); assertThat(result, is(false)); }