TurbineService { public String listStrategies() { String result = null; try { result = json.writeValueAsString(new Object() { @JsonProperty("strategies") List<EnableTurbineStrategy> strategiez = findStrategies(); }); } catch (JsonProcessingException e) { logger.error(e.getMessage(), e); } return result; }  @PostConstruct void init(); List<Ticker> findTickers(ExchangeEnum exchange); List<EnableTurbineStrategy> findStrategies(); String listStocks(String exchange); String listStrategies(); String listIndicators(); List<IndicatorInstance> getIndicatorInstances(); ResourceLoader getResource(); void setResource(ResourceLoader resource); public List<IndicatorInstance> indicatorInstances; }
@Test public void testListStrategies() throws Exception { String strategies = turbineService.listStrategies(); logger.info("{}", strategies); assertThat(strategies).contains(SMAStrategy.class.getSimpleName()); }