@Test
void generateWithStrengthParameter()
{

    KeyGenerationParameters params = new GenericKeyGenerationParameters(128);
    byte[] key = generator.generate(params);
    assertThat(key.length, equalTo(128));
    assertThat(key, not(equalTo(generator.generate(params))));
    assertThat(generator.generate(new GenericKeyGenerationParameters(16)).length, equalTo(16));
}