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 Can't use these options together: -cu, -nu Aborting due to IllegalStateException (use -X to see full stack trace): null Must give as many user names as passwords Option Description ------ ----------- -?, -h Show help -X, --debug Produce execution debug output -a New User(s) added with 'admin' role --changeUser, --cu Existing user name to change password --dbd databaseDirectory (default: .) --deleteUser, --du Existing user name to delete -l, --listUsers List all existing users --newUser, --nu New user to create -p, --passwd New password --verifyUser, --vu Existing user name to verify password of Must give as many user names as passwords Must give as many user names as passwords Must give as many user names as passwords Aborting due to OptionMissingRequiredArgumentException (use -X to see full stack trace): Option newUser/nu requires an argument Unrecognized options: [saywhat] Option Description ------ ----------- -?, -h Show help -X, --debug Produce execution debug output -a New User(s) added with 'admin' role --changeUser, --cu Existing user name to change password --dbd databaseDirectory (default: .) --deleteUser, --du Existing user name to delete -l, --listUsers List all existing users --newUser, --nu New user to create -p, --passwd New password --verifyUser, --vu Existing user name to verify password of Unrecognized options: [-d] Option Description ------ ----------- -?, -h Show help -X, --debug Produce execution debug output -a New User(s) added with 'admin' role --changeUser, --cu Existing user name to change password --dbd databaseDirectory (default: .) --deleteUser, --du Existing user name to delete -l, --listUsers List all existing users --newUser, --nu New user to create -p, --passwd New password --verifyUser, --vu Existing user name to verify password of If passwords are specificied, then must use one or the other of these options: -cu, -nu