@Test(expected = IllegalStateException.class)
public void testReseedException2() throws NoSuchAlgorithmException {

  HmacDrbg m = new HmacDrbg(new byte[]{0x01}, new byte[]{0x02});
  m.reseedCounter = HmacDrbg.MAX_RESEED_COUNT - 1;
  byte[] randBytes1 = new byte[0];
  for (double i = 0; i < 2; i++) {
    m.nextBytes(randBytes1);
  }
  //New seed is now used. Reset again
  m.reseedCounter = HmacDrbg.MAX_RESEED_COUNT - 1;
  for (double i = 0; i < 2; i++) {
    m.nextBytes(randBytes1);
  }
}