@Test
  public void test3() {
    ListDistributor d = new ListDistributor(2, 3);
    assertEquals(2, d.getNumThreads());

    assertEquals(0, d.getFromListIndex(0));
    assertEquals(1, d.getToListIndex(0));

    assertEquals(1, d.getFromListIndex(1));
    assertEquals(3, d.getToListIndex(1));
  }
  @Test
  public void test5() {
    ListDistributor d = new ListDistributor(3, 10);
    assertEquals(3, d.getNumThreads());

    assertEquals(0, d.getFromListIndex(0));
    assertEquals(3, d.getToListIndex(0));

    assertEquals(3, d.getFromListIndex(1));
    assertEquals(6, d.getToListIndex(1));

    assertEquals(6, d.getFromListIndex(2));
    assertEquals(10, d.getToListIndex(2));
  }