@Test
public void shouldGiveTrueWhenPatternExistInText() throws Exception {

    String text = Files.lines(Paths.get("src", "test", "resources", "book.txt")).collect(joining());
    boolean patternExists = RandomProblem002.patternExistInText(text, "prudent");
    assertTrue(patternExists);
}