message: Replace an instance of the deprecated MacFactory.getPrimitive with the non-deprecated keysetHandle.getPrimitive(Mac.class);
diff: @@ -20,7 +20,6 @@ import static com.google.common.truth.Truth.assertThat;
  import com.google.crypto.tink.aead.AeadKeyTemplates;
  import com.google.crypto.tink.config.TinkConfig;
  -import com.google.crypto.tink.mac.MacFactory;
  import com.google.crypto.tink.mac.MacKeyTemplates;
  import com.google.crypto.tink.proto.KeyTemplate;
  import com.google.crypto.tink.subtle.Random;
  @@ -41,8 +40,8 @@ public class JsonKeysetWriterTest {
  }
  private void assertKeysetHandle(KeysetHandle handle1, KeysetHandle handle2) throws Exception {
  - Mac mac1 = MacFactory.getPrimitive(handle1);
  - Mac mac2 = MacFactory.getPrimitive(handle2);
  + Mac mac1 = handle1.getPrimitive(Mac.class);
  + Mac mac2 = handle2.getPrimitive(Mac.class);
  byte[] message = Random.randBytes(20);
  assertThat(handle2.getKeyset()).isEqualTo(handle1.getKeyset());
  