public static AesCmacParameters createAesCmacParameters(
      int keySizeBytes, int tagSizeBytes, Variant variant) {
    try {
      return AesCmacParameters.builder()
          .setKeySizeBytes(keySizeBytes)
          .setVariant(variant)
          .setTagSizeBytes(tagSizeBytes)
          .build();
    } catch (GeneralSecurityException ex) {
      throw new TinkBugException(ex);
    }
  }
Creates an {@link AesCmacParameters} object from the provided {@code keySizeBytes},
{@code tagSizeBytes}, and {@code variant}. This is a convenience method that makes the tests
code more concise and readable.
java_src/src/main/java/com/google/crypto/tink/mac/internal/AesCmacTestUtil.java