JsCacheAnnotationServices { public void processJsCacheRemoveAll() { logger.debug("Process JsCacheRemoveAll annotation"); MessageToClient messageToClient = new MessageToClient(); messageToClient.setId(Constants.Cache.CLEANCACHE_TOPIC); messageToClient.setResponse(Constants.Cache.ALL); wsEvent.fire(messageToClient); }  void processJsCacheRemoveAll(); long getJsCacheResultDeadline(JsCacheResult jcr); void processJsCacheRemove(JsCacheRemove jcr, List<String> paramNames, List<String> jsonArgs);  }
@Test public void testProcessJsCacheRemoveAll() { System.out.println("processJsCacheRemoveAll"); instance.processJsCacheRemoveAll(); ArgumentCaptor<MessageToClient> captureMTC = ArgumentCaptor.forClass(MessageToClient.class); verify(wsEvent).fire(captureMTC.capture()); assertThat(captureMTC.getValue().getId()).isEqualTo(Constants.Cache.CLEANCACHE_TOPIC); assertThat(captureMTC.getValue().getResponse()).isEqualTo(Constants.Cache.ALL); }