@Test(expected = Exception.class)
public void testApplyScriptBadSyntax() throws Exception {

  String script = "this syntax is invalid!";
  AdviserPredicate adviserPredicate = createAdviserPredicate(script);
  adviserPredicate.init();
}