@Test
public void createKey_checkValues() throws Exception {

  AesGcmHkdfStreamingKeyFormat format = createKeyFormat(32, 32, HashType.SHA256, 1024);
  AesGcmHkdfStreamingKey key = factory.createKey(format);
  assertThat(key.getParams()).isEqualTo(format.getParams());
  assertThat(key.getVersion()).isEqualTo(0);
  assertThat(key.getKeyValue()).hasSize(format.getKeySize());
}