The method call should be test(a: '1', b: '2') instead of test([a: '1', b: '2']).
Please check the named parameters section for methods in the docs.
The method call should be test(a: '1', b: '2') instead of test([a: '1', b: '2']).
Please check the named parameters section for methods in the docs.