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.3/byte-buddy-agent-1.15.3.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 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 [main] INFO org.opendaylight.mdsal.dom.broker.DOMNotificationRouter - DOM Notification Router started [main] INFO org.opendaylight.ovsdb.hwvtepsouthbound.reconciliation.ReconciliationManager - ThreadFactory created: ovsdb-reconciler [main] INFO org.opendaylight.ovsdb.hwvtepsouthbound.HwvtepOperGlobalListener - Registering HwvtepOperGlobalListener [main] INFO org.opendaylight.ovsdb.hwvtepsouthbound.HwvtepDataChangeListener - Registering HwvtepDataChangeListener [main] INFO org.opendaylight.mdsal.dom.broker.DOMNotificationRouter - DOM Notification Router started [main] INFO org.opendaylight.ovsdb.hwvtepsouthbound.reconciliation.ReconciliationManager - ThreadFactory created: ovsdb-reconciler [main] INFO org.opendaylight.ovsdb.hwvtepsouthbound.HwvtepOperGlobalListener - Registering HwvtepOperGlobalListener [main] INFO org.opendaylight.ovsdb.hwvtepsouthbound.HwvtepDataChangeListener - Registering HwvtepDataChangeListener [hwvtep-waiting-job-1] ERROR org.opendaylight.ovsdb.hwvtepsouthbound.transact.DependencyQueue - Failed to process dependencies org.mockito.exceptions.misusing.WrongTypeOfReturnValue: ListenableFuture$MockitoMock$yYmOdxw0 cannot be returned by isActive() isActive() should return boolean *** If you're unsure why you're getting above error read on. Due to the nature of the syntax above problem might occur because: 1. This exception *might* occur in wrongly written multi-threaded tests. Please refer to Mockito FAQ on limitations of concurrency testing. 2. A spy is stubbed using when(spy.foo()).then() syntax. It is safer to stub spies - - with doReturn|Throw() family of methods. More in javadocs for Mockito.spy() method. at org.opendaylight.ovsdb.hwvtepsouthbound.transact.DependencyQueue.lambda$new$0(DependencyQueue.java:47) at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:572) at java.base/java.util.concurrent.FutureTask.runAndReset(FutureTask.java:358) at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:305) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642) at java.base/java.lang.Thread.run(Thread.java:1583) [main] INFO org.opendaylight.ovsdb.hwvtepsouthbound.transact.AbstractTransactCommand - Update received for key: org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.ovsdb.hwvtep.rev150901.hwvtep.global.attributes.LogicalSwitches.efcfb81e-4d87-4d05-9311-6362a83a5bdd.ls0 txId: 0 [main] INFO org.opendaylight.ovsdb.hwvtepsouthbound.transact.LogicalSwitchUpdateCommand - CONTROLLER - ADD Logical_Switch : Row [columns={name=[name=ls0], tunnel_key=[tunnel_key=[100]]}] [main] INFO org.opendaylight.yangtools.binding.data.codec.impl.LazyBindingMap - Using lazy population for maps larger than 1 element(s) [main] INFO org.opendaylight.yangtools.binding.data.codec.impl.LazyBindingList - Using lazy population for lists larger than 16 element(s)