SetStatementValidator { private static boolean validate(final String statement) { return onlyOneTemplateKey(statement) && noFunctionCallsInStatement(statement); } private  SetStatementValidator(); static boolean validate(final List<String> setters);  }
@Test public void twoParameters() { final List<String> setters = new ArrayList<>(); setters.add("$person.setHelloMsg(@{param2}, @{param3})"); assertFalse(SetStatementValidator.validate(setters)); }
@Test public void methodCallInSetter() { final List<String> setters = new ArrayList<>(); setters.add("$person.setHelloMsg(hello(@{param2}))"); assertFalse(SetStatementValidator.validate(setters)); }