OcelotServices { public Collection<String> getOutDatedCache(Map<String, Long> states) { return updatedCacheManager.getOutDatedCache(states); }  void initCore(Options options, HttpSession httpSession); @JsCacheRemove(cls = OcelotServices.class, methodName = "getLocale", keys = {}, userScope = true) void setLocale(@JsonUnmarshaller(LocaleMarshaller.class) Locale locale); @JsCacheResult(year = 1) @JsonMarshaller(LocaleMarshaller.class) Locale getLocale(); String getUsername(); Collection<String> getOutDatedCache(Map<String, Long> states); @JsTopic @WsDataService Integer subscribe(@JsTopicName(prefix = Constants.Topic.SUBSCRIBERS) String topic, Session session); @JsTopic @WsDataService Integer unsubscribe(@JsTopicName(prefix = Constants.Topic.SUBSCRIBERS) String topic, Session session); Integer getNumberSubscribers(String topic); String getVersion();  }
@Test public void testGetOutDatedCache() { System.out.println("getOutDatedCache"); Map<String, Long> states = new HashMap<>(); when(updatedCacheManager.getOutDatedCache(any(Map.class))).thenReturn(Collections.EMPTY_LIST); Collection<String> result = instance.getOutDatedCache(states); assertThat(result).isInstanceOf(Collection.class); }