### Question:
BackgroundRpcListener implements RpcListener { @Override public void listenForRequests(RequestCallback callback) { log.debug("Added request listener"); this.requestCallback = callback; } BackgroundRpcListener(ExecutorService executorService, ObjectMapper responseObjectMapper); @Override void start(InputStream inputStream); @Override void stop(); @Override void listenForResponse(int id, ResponseCallback callback); @Override void listenForNotifications(NotificationCallback callback); @Override void listenForRequests(RequestCallback callback); static final Logger log; }### Answer:
@Test public void testRequestListenerWithoutStart() throws IOException { prepareSequentialExecutorService(); var requestCallback = Mockito.mock(RpcListener.RequestCallback.class); backgroundRpcListener.listenForRequests(requestCallback); verify(requestCallback, never()).requestReceived(any()); }