@Test
public void createKey_valid() throws Exception {

  manager.validateKey(factory.createKey(makeHmacPrfKeyFormat(16, HashType.SHA1)));
  manager.validateKey(factory.createKey(makeHmacPrfKeyFormat(20, HashType.SHA1)));
  manager.validateKey(factory.createKey(makeHmacPrfKeyFormat(32, HashType.SHA1)));
  manager.validateKey(factory.createKey(makeHmacPrfKeyFormat(16, HashType.SHA256)));
  manager.validateKey(factory.createKey(makeHmacPrfKeyFormat(32, HashType.SHA256)));
  manager.validateKey(factory.createKey(makeHmacPrfKeyFormat(16, HashType.SHA512)));
  manager.validateKey(factory.createKey(makeHmacPrfKeyFormat(32, HashType.SHA512)));
  manager.validateKey(factory.createKey(makeHmacPrfKeyFormat(64, HashType.SHA512)));
}