public static HmacParameters createHmacParameters(
      int keySizeBytes, int fullTagSizeBytes, Variant variant, HashType hashType) {
    try {
      return HmacParameters.builder()
          .setKeySizeBytes(keySizeBytes)
          .setTagSizeBytes(fullTagSizeBytes)
          .setVariant(variant)
          .setHashType(hashType)
          .build();
    } catch (GeneralSecurityException e) {
      throw new IllegalArgumentException("Incorrect parameters creation arguments", e);
    }
  }
Creates an {@link HmacParameters} object from the provided {@code keySizeBytes},
{@code fullTagSizeBytes}, {@code variant}, and {@code HashType}. 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/HmacTestUtil.java