@Theory
  public void endToEnd_works(@FromDataPoints("allHmacTestVectors") HmacTestVector t)
      throws Exception {
    MutablePrimitiveRegistry.resetGlobalInstanceTestOnly();
    MacConfig.register();

    KeysetHandle keysetHandle = getKeysetHandleFromKeyNoSerialization(t.key);
    Mac mac = keysetHandle.getPrimitive(Mac.class);

    mac.verifyMac(t.tag, t.message);
  }
Verifies that LegacyFullMac is correctly integrated with the Tink ecosystem.
java_src/src/test/java/com/google/crypto/tink/mac/internal/LegacyFullMacIntegrationTest.java