@Test(timeout = 8000)
public void pseudoRandomStream() throws Throwable {

    IntStream stream = (IntStream) TestUtils.invokeMethod(mainClass, pseudoRandomStream, 13);
    assertNotNull("Main.pseudoRandomStream(13) return null", stream);
    List<Integer> actual = new ArrayList<>();
    stream.limit(10).forEach(actual::add);
    Integer[] expected = new Integer[]{13, 16, 25, 62, 384, 745, 502, 200, 0, 0};
    assertArrayEquals("Main.pseudoRandomStream(13).limit(10).toArray()",
            expected,
            actual.toArray(new Integer[10]));
}