@Test
public void createKey_checkValues() throws Exception {

  AesCmacKeyFormat keyFormat = makeAesCmacKeyFormat(32, 16);
  AesCmacKey key = new AesCmacKeyManager().keyFactory().createKey(keyFormat);
  assertThat(key.getKeyValue()).hasSize(keyFormat.getKeySize());
  assertThat(key.getParams().getTagSize()).isEqualTo(keyFormat.getParams().getTagSize());
}