### Question:
Hmac { public static byte[] hmacSha512(byte[] key, byte[] message) { MessageDigest digest; try { digest = MessageDigest.getInstance(SHA512); } catch (NoSuchAlgorithmException e) { throw new RuntimeException(e); } return hmac(digest, SHA512_BLOCK_SIZE, key, message); }  static byte[] hmacSha256(byte[] key, byte[] message); static byte[] hmacSha512(byte[] key, byte[] message); static boolean testTestVectors();  }### Answer:
@Test public void hmacSha512Test() throws InterruptedException { assertTrue(Arrays.equals(TEST_1_RESULT, Hmac.hmacSha512(TEST_1_KEY, TEST_1_DATA))); assertTrue(Arrays.equals(TEST_2_RESULT, Hmac.hmacSha512(TEST_2_KEY, TEST_2_DATA))); assertTrue(Arrays.equals(TEST_3_RESULT, Hmac.hmacSha512(TEST_3_KEY, TEST_3_DATA))); }