@Test
public void shouldGiveAllPrimeNumbersBetween2And10() throws Exception {

    List<Integer> primeNumbers = P34.primeNumbers(IntStream.rangeClosed(2, 10));
    assertThat(primeNumbers, hasSize(4));
    assertThat(primeNumbers, hasItems(2, 3, 5, 7));
}