@Test
public void testDifferentAlgorithm() throws NoSuchAlgorithmException {

  byte[] bytes = new byte[]{0x10, 0x09, 0x01};
  HmacDrbg rand1 = new HmacDrbg(bytes);
  HmacDrbg rand2 = new HmacDrbg(new Supplier<Mac>() {
    @Override
    public Mac get() {
      try {
        return Mac.getInstance("HmacSHA512");
      } catch (NoSuchAlgorithmException e) {
        return null;
      }
    }
  }, bytes);
  byte[] randBytes1 = new byte[10];
  byte[] randBytes2 = new byte[10];
  rand1.nextBytes(randBytes1);
  rand2.nextBytes(randBytes2);
  assertFalse(Arrays.equals(randBytes1, randBytes2));
}