OcelotServices { public void initCore(Options options, HttpSession httpSession) { httpSession.setAttribute(Constants.Options.OPTIONS, options); }  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 test_getInitCore() { System.out.println("initCore"); Options options = mock(Options.class); HttpSession httpSession = mock(HttpSession.class); instance.initCore(options, httpSession); verify(httpSession).setAttribute(eq(Constants.Options.OPTIONS), eq(options)); }