@Test
public void createKey_valid() throws Exception {

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