OcelotServices { public String getVersion() { try { InputStream in = this.getClass().getResourceAsStream("/META-INF/maven/org.ocelotds/ocelot-web/pom.properties"); Properties prop = new Properties(); prop.load(in); return prop.getProperty("version"); } catch (Throwable ex) { } return "locale"; }  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 getVersionTest() { System.out.println("getVersion"); String result = instance.getVersion(); assertThat(result).isNotNull(); assertThat(result).isEqualTo("TestVersion"); }