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 07:16:15,875 PM [main] [INFO] YangLibraryWriter - ietf-yang-library writer started with modules-state disabled 07:16:15,880 PM [main] [DEBUG] YangLibraryWriter - Allocated new transaction chain 07:16:15,895 PM [main] [DEBUG] YangLibraryWriter - ietf-yang-library cleaned successfully 07:16:15,895 PM [main] [INFO] YangLibraryWriter - ietf-yang-library writer stopped 07:16:15,957 PM [main] [INFO] YangLibraryWriter - ietf-yang-library writer started with modules-state enabled 07:16:15,957 PM [main] [DEBUG] YangLibraryWriter - Allocated new transaction chain 07:16:15,958 PM [main] [DEBUG] YangLibraryWriter - ietf-yang-library cleaned successfully 07:16:15,958 PM [main] [INFO] YangLibraryWriter - ietf-yang-library writer stopped 07:16:17,287 PM [main] [DEBUG] YangLibraryWriter - ietf-yang-library writer starting update to 1 07:16:17,287 PM [main] [DEBUG] YangLibraryWriter - Allocated new transaction chain 07:16:17,297 PM [main] [DEBUG] YangLibraryWriter - ietf-yang-library updated successfully 07:16:17,297 PM [main] [INFO] YangLibraryWriter - ietf-yang-library writer started with modules-state disabled 07:16:17,401 PM [main] [DEBUG] YangLibraryWriter - ietf-yang-library writer starting update to 1 07:16:17,402 PM [main] [DEBUG] YangLibraryWriter - Allocated new transaction chain 07:16:17,404 PM [main] [DEBUG] YangLibraryWriter - ietf-yang-library updated successfully 07:16:17,404 PM [main] [INFO] YangLibraryWriter - ietf-yang-library writer started with modules-state enabled 07:16:17,509 PM [main] [DEBUG] YangLibraryWriter - ietf-yang-library writer starting update to 1 07:16:17,510 PM [main] [DEBUG] YangLibraryWriter - Allocated new transaction chain 07:16:17,512 PM [main] [DEBUG] YangLibraryWriter - ietf-yang-library updated successfully 07:16:17,512 PM [main] [INFO] YangLibraryWriter - ietf-yang-library writer started with modules-state disabled 07:16:17,601 PM [main] [DEBUG] YangLibraryWriter - ietf-yang-library writer starting update to 1 07:16:17,602 PM [main] [DEBUG] YangLibraryWriter - Allocated new transaction chain 07:16:17,604 PM [main] [DEBUG] YangLibraryWriter - ietf-yang-library updated successfully 07:16:17,604 PM [main] [INFO] YangLibraryWriter - ietf-yang-library writer started with modules-state enabled 07:16:17,618 PM [main] [WARN] YangLibraryWriter - ietf-yang-library not present in context, skipping update 07:16:17,618 PM [main] [INFO] YangLibraryWriter - ietf-yang-library writer started with modules-state disabled