ColumnsFunction implements Function<DataContainer> { @Override public Set<String> validateInput(List<Object> args) { return oneOf( args, argsCount(1) ); } @Autowired  ColumnsFunction(TablesAware tablesAware, IndexStorage indexStorage); @Override Set<String> validateInput(List<Object> args); @Override Class<DataContainer> getReturnType(); @Override FunctionName getName(); @Override DataContainer apply(List<Object> objects); @Override String getSignature(); @Override String getDescription();  }
@Test public void testValidateInput() { assertThat(function.validateInput(Collections.emptyList()), is(not(empty()))); assertThat(function.validateInput(Collections.singletonList(INSTANCES_TABLE)), is(empty())); }