I want to test the following method:
public void dispatchMessage(MessageHandler handler, String argument1, String argument2, Long argument3) { handl
Outside of the specific lambda, you can verify that your method was called with any lambda expression was called like this:
verify(handler).registerMessage(any()) private fun any(): T { Mockito.any() return null as T }