/** @see org.apache.jsieve.tests.AbstractTest#validateArguments(Arguments, SieveContext) */ protected void validateArguments(Arguments arguments, SieveContext context) throws SieveException { List<Argument> argumentsList = arguments.getArgumentList(); if (1 != argumentsList.size()) throw context.getCoordinate().syntaxException("Expecting exactly one argument"); if (!(argumentsList.get(0) instanceof StringListArgument)) throw context.getCoordinate().syntaxException("Expecting a StringList"); if (arguments.hasTests()) throw context.getCoordinate().syntaxException("Found unexpected tests"); }