  @Test
  public void test0() throws Exception {

    RandomAccessPattern p = new RandomAccessPattern(1);
    assertTrue(p.isEternal());
    assertTrue(p.hasNext());
    assertEquals(0, p.next());
    assertTrue(p.isEternal());
    assertTrue(p.hasNext());
    assertEquals(0, p.next());
  }