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 11:29:02,476 AM [main] [INFO] YangLibraryWriter - ietf-yang-library writer started with modules-state disabled 11:29:02,480 AM [main] [DEBUG] YangLibraryWriter - Allocated new transaction chain 11:29:02,493 AM [main] [DEBUG] YangLibraryWriter - ietf-yang-library cleaned successfully 11:29:02,494 AM [main] [INFO] YangLibraryWriter - ietf-yang-library writer stopped 11:29:02,551 AM [main] [INFO] YangLibraryWriter - ietf-yang-library writer started with modules-state enabled 11:29:02,552 AM [main] [DEBUG] YangLibraryWriter - Allocated new transaction chain 11:29:02,553 AM [main] [DEBUG] YangLibraryWriter - ietf-yang-library cleaned successfully 11:29:02,553 AM [main] [INFO] YangLibraryWriter - ietf-yang-library writer stopped 11:29:03,801 AM [main] [DEBUG] YangLibraryWriter - ietf-yang-library writer starting update to 1 11:29:03,802 AM [main] [DEBUG] YangLibraryWriter - Allocated new transaction chain 11:29:03,810 AM [main] [DEBUG] YangLibraryWriter - ietf-yang-library updated successfully 11:29:03,811 AM [main] [INFO] YangLibraryWriter - ietf-yang-library writer started with modules-state disabled 11:29:03,916 AM [main] [DEBUG] YangLibraryWriter - ietf-yang-library writer starting update to 1 11:29:03,916 AM [main] [DEBUG] YangLibraryWriter - Allocated new transaction chain 11:29:03,919 AM [main] [DEBUG] YangLibraryWriter - ietf-yang-library updated successfully 11:29:03,919 AM [main] [INFO] YangLibraryWriter - ietf-yang-library writer started with modules-state enabled 11:29:04,6 AM [main] [DEBUG] YangLibraryWriter - ietf-yang-library writer starting update to 1 11:29:04,6 AM [main] [DEBUG] YangLibraryWriter - Allocated new transaction chain 11:29:04,8 AM [main] [DEBUG] YangLibraryWriter - ietf-yang-library updated successfully 11:29:04,8 AM [main] [INFO] YangLibraryWriter - ietf-yang-library writer started with modules-state disabled 11:29:04,84 AM [main] [DEBUG] YangLibraryWriter - ietf-yang-library writer starting update to 1 11:29:04,84 AM [main] [DEBUG] YangLibraryWriter - Allocated new transaction chain 11:29:04,86 AM [main] [DEBUG] YangLibraryWriter - ietf-yang-library updated successfully 11:29:04,86 AM [main] [INFO] YangLibraryWriter - ietf-yang-library writer started with modules-state enabled 11:29:04,97 AM [main] [WARN] YangLibraryWriter - ietf-yang-library not present in context, skipping update 11:29:04,97 AM [main] [INFO] YangLibraryWriter - ietf-yang-library writer started with modules-state disabled