ScriptFilterUtil { static boolean testConditions(String scope, ScriptFilterCondition condition, ScriptStep step, List<ScriptStep> steps) { if (scope.equalsIgnoreCase("Hostname")) { return filterOnField(step.getHostname(), condition, step); } else if (scope.equalsIgnoreCase("Path")) { return filterOnField(step.getSimplePath(), condition, step); } else if (scope.equalsIgnoreCase("Query String")) { return filterOnFieldSets(step.getQueryStrings(), condition, step, steps); } else if (scope.equalsIgnoreCase("Post Data")) { return filterOnFieldSets(step.getPostDatas(), condition, step, steps); } throw new IllegalArgumentException("Unknown scope: " + scope); }  static List<ScriptStep> applyFilters(Collection<ScriptFilter> filters, List<ScriptStep> steps); static void applyFilters(List<Integer> filterIds, Script script); static void applyFiltersToScript(Collection<ScriptFilter> filters, Script script); static void applyFilter(ScriptFilter filter, List<ScriptStep> steps); static boolean filterOnField(String filterField, ScriptFilterCondition condition,
            ScriptStep currentStep); static boolean filterOnFieldSets(Set<RequestData> fields, ScriptFilterCondition condition,
            ScriptStep currentStep, List<ScriptStep> steps); static ScriptStep doAction(Set<ScriptFilterAction> actions, ScriptStep step);  }
@Test() public void testTestConditions_9() throws Exception { String scope = ""; ScriptFilterCondition condition = new ScriptFilterCondition(); ScriptStep step = new ScriptStep(); List<ScriptStep> steps = new LinkedList(); assertThrows(java.lang.IllegalArgumentException.class, () -> ScriptFilterUtil.testConditions(scope, condition, step, steps)); }