@BeforeClass
  public static void setUp() throws Exception {
    PrfConfig.register();  // Needed for PRF-based key derivation
    AeadConfig.register();  // Needed to derive Aead keys
    MacConfig.register();  // Needed to derive Mac keys
    KeyDerivationConfig.register();
    DeterministicAeadConfig.register(); // Needed for getPrimitiveFromNonKeysetDeriverKeyset_throws.
  }
Unit tests for the Key Derivation package. Uses only the public API.
java_src/src/test/java/com/google/crypto/tink/keyderivation/KeyDerivationTest.java