How can we mock the IRouteHandlerRegistry? The error is Cannot resolve method thenReturn(IHandleRoute)
IRouteHandlerRegistry
Cannot resolve method thenReturn(IHandleRoute)
public interfac
If you write like this it will be ok:
Mockito.doReturn(handler).when(registry).getHandlerFor(Mockito.any(route.class))