StellarServiceImpl implements StellarService { @Override public List<StellarFunctionDescription> getSimpleStellarFunctions() { List<StellarFunctionDescription> stellarFunctionDescriptions = getStellarFunctions(); return stellarFunctionDescriptions.stream().filter(stellarFunctionDescription -> stellarFunctionDescription.getParams().length == 1).sorted((o1, o2) -> o1.getName().compareTo(o2.getName())).collect(Collectors.toList()); } @Autowired  StellarServiceImpl(CuratorFramework client); @Override Map<String, Boolean> validateRules(List<String> rules); @Override Map<String, Object> applyTransformations(SensorParserContext sensorParserContext); @Override FieldTransformations[] getTransformations(); @Override List<StellarFunctionDescription> getStellarFunctions(); @Override List<StellarFunctionDescription> getSimpleStellarFunctions();  }
@Test public void getSimpleStellarFunctionsShouldReturnFunctions() { assertEquals(1, stellarService.getSimpleStellarFunctions().stream() .filter(stellarFunctionDescription -> stellarFunctionDescription.getName().equals("TO_LOWER")).count()); }