@BeforeClass
  public static void setUp() throws Exception {
    MacConfig.register();
    DeterministicAeadConfig.register(); // Needed for getPrimitiveFromNonMacKeyset_throws.
  }
Unit tests for the Mac package. Uses only the public API.
java_src/src/test/java/com/google/crypto/tink/mac/MacTest.java