Map<String, Action> actions = new HashMap<>();
actions.put("action", new TestAction());
ActionParser parser = new ActionParser(actions);
checkAction(parser.loadAction("action(param1=value1)"), "param1", "value1");
checkAction(parser.loadAction("action(param1=value1,param2=2)"), "param1", "value1", "param2", "2");
checkAction(parser.loadAction("action(param1=value1,param2=2\\(\\=\\,\\\\)"), "param1", "value1", "param2", "2(=,\\");
checkAction(parser.loadAction("action(param1=value1,"), "param1", "value1");
checkAction(parser.loadAction("action(param1=value1"), "param1", "value1");
checkAction(parser.loadAction("action(param1="), "param1", "");
checkAction(parser.loadAction("action(param1"), "param1", "");
checkAction(parser.loadAction("action("));