HaikuReview { boolean hasThreeLines(String haiku) { return haiku.matches(".*[/].*[/].*"); }  boolean isHaiku(String input); static final String INPUT_ONE; static final String INPUT_TWO; }
@Test public void givenTheCorrectNumberOfLines_ThenIsCorrectLinesForHaiku() throws Exception { String input = "line1/line2/line3"; boolean b = haikuReview.hasThreeLines(input); assertThat(b).isTrue(); }
@Test public void givenAnIncorrectNumberOfLines_ThenIsNotAHaiku() throws Exception { String input = "line1/line2"; boolean b = haikuReview.hasThreeLines(input); assertThat(b).isFalse(); }