### Question:
KeyUtils { public static SecretKey loadSecretKey(byte[] secret, String javaAlgorithmName) { return new SecretKeySpec(secret, javaAlgorithmName); } private  KeyUtils(); static SecretKey loadSecretKey(byte[] secret, String javaAlgorithmName); static KeyPair generateRsaKeyPair(int keysize); static PublicKey extractPublicKey(PrivateKey key); static String createKeyId(Key key);  }### Answer:
@Test public void loadSecretKey() { byte[] secretBytes = new byte[32]; ThreadLocalRandom.current().nextBytes(secretBytes); SecretKeySpec expected = new SecretKeySpec(secretBytes, "HmacSHA256"); SecretKey actual = KeyUtils.loadSecretKey(secretBytes, "HmacSHA256"); assertEquals(expected.getAlgorithm(), actual.getAlgorithm()); assertArrayEquals(expected.getEncoded(), actual.getEncoded()); }