Mockito is currently self-attaching to enable the inline-mock-maker. This will no longer work in future releases of the JDK. Please add Mockito as an agent to your build what is described in Mockito's documentation: https://javadoc.io/doc/org.mockito/mockito-core/latest/org/mockito/Mockito.html#0.3 WARNING: A Java agent has been loaded dynamically (/tmp/r/net/bytebuddy/byte-buddy-agent/1.15.4/byte-buddy-agent-1.15.4.jar) WARNING: If a serviceability tool is in use, please run with -XX:+EnableDynamicAgentLoading to hide this warning WARNING: If a serviceability tool is not in use, please run with -Djdk.instrument.traceUsage for more information WARNING: Dynamic loading of agents will be disallowed by default in a future release 08:14:24,740 AM [main] [INFO] YangLibraryWriter - ietf-yang-library writer started with modules-state disabled 08:14:24,744 AM [main] [DEBUG] YangLibraryWriter - Allocated new transaction chain 08:14:24,756 AM [main] [DEBUG] YangLibraryWriter - ietf-yang-library cleaned successfully 08:14:24,756 AM [main] [INFO] YangLibraryWriter - ietf-yang-library writer stopped 08:14:24,811 AM [main] [INFO] YangLibraryWriter - ietf-yang-library writer started with modules-state enabled 08:14:24,811 AM [main] [DEBUG] YangLibraryWriter - Allocated new transaction chain 08:14:24,812 AM [main] [DEBUG] YangLibraryWriter - ietf-yang-library cleaned successfully 08:14:24,812 AM [main] [INFO] YangLibraryWriter - ietf-yang-library writer stopped 08:14:26,257 AM [main] [DEBUG] YangLibraryWriter - ietf-yang-library writer starting update to 1 08:14:26,258 AM [main] [DEBUG] YangLibraryWriter - Allocated new transaction chain 08:14:26,267 AM [main] [DEBUG] YangLibraryWriter - ietf-yang-library updated successfully 08:14:26,267 AM [main] [INFO] YangLibraryWriter - ietf-yang-library writer started with modules-state disabled 08:14:26,371 AM [main] [DEBUG] YangLibraryWriter - ietf-yang-library writer starting update to 1 08:14:26,371 AM [main] [DEBUG] YangLibraryWriter - Allocated new transaction chain 08:14:26,374 AM [main] [DEBUG] YangLibraryWriter - ietf-yang-library updated successfully 08:14:26,374 AM [main] [INFO] YangLibraryWriter - ietf-yang-library writer started with modules-state enabled 08:14:26,468 AM [main] [DEBUG] YangLibraryWriter - ietf-yang-library writer starting update to 1 08:14:26,468 AM [main] [DEBUG] YangLibraryWriter - Allocated new transaction chain 08:14:26,470 AM [main] [DEBUG] YangLibraryWriter - ietf-yang-library updated successfully 08:14:26,470 AM [main] [INFO] YangLibraryWriter - ietf-yang-library writer started with modules-state disabled 08:14:26,543 AM [main] [DEBUG] YangLibraryWriter - ietf-yang-library writer starting update to 1 08:14:26,543 AM [main] [DEBUG] YangLibraryWriter - Allocated new transaction chain 08:14:26,545 AM [main] [DEBUG] YangLibraryWriter - ietf-yang-library updated successfully 08:14:26,545 AM [main] [INFO] YangLibraryWriter - ietf-yang-library writer started with modules-state enabled 08:14:26,556 AM [main] [WARN] YangLibraryWriter - ietf-yang-library not present in context, skipping update 08:14:26,556 AM [main] [INFO] YangLibraryWriter - ietf-yang-library writer started with modules-state disabled