@Test
public void testReadFully3() throws Exception {

  array = new byte[30003];
  final Thread testThread = new Thread(() -> {
    try {
      littleEndien.readFully(array);
    } catch (final IOException e) {
      e.printStackTrace();
      fail("ioexception");
    }
  });
  testThread.start();
  in.addBytesAvailable(10000);
  assertTrue("still alive", testThread.isAlive());
  Thread.sleep(6);
  in.addBytesAvailable(10001);
  assertTrue("still alive", testThread.isAlive());
  in.addBytesAvailable(10002); // now the test thread can die
  testThread.join();
  // not caring about whether the bytes were actually copied successfully in this test
}