static synchronized void reset() {
    KeyManagerRegistry.resetGlobalInstanceTestOnly();
    MutablePrimitiveRegistry.resetGlobalInstanceTestOnly();
    catalogueMap.clear();
  }
Resets the registry.

<p>After reset the registry is empty, i.e. it contains no key managers. Thus one might need to
call {@code XyzConfig.register()} to re-install the catalogues.

<p>This method is intended for testing.
java_src/src/main/java/com/google/crypto/tink/Registry.java