### Question:
FunctionParser { public static List<Object> parseFunctionAnyParameter(String string) { return parseFunctionAnyParameter("(\\w+)", string); }  static List<Object> parseFunctionWithScalarOrArrayArguments(String string, String errorMessage); static List<Object> parseFunctionWithScalarOrArrayArguments(String nameRegex, String string, String errorMessage); static Object asScalarOrList(List<Object> objects); static ListDouble asListDouble(List<Object> objects); static List<String> asListString(List<Object> objects); static List<Object> parseFunctionAnyParameter(String string); static List<Object> parseFunctionAnyParameter(String nameRegex, String string);  }### Answer:
@Test public void parseFunctionAnyParameters1() { List<Object> parameters = FunctionParser.parseFunctionAnyParameter("foo(1.0)"); assertThat(parameters, equalTo(Arrays.asList((Object) "foo", 1.0))); }
@Test public void parseFunctionAnyParameters2() { List<Object> parameters = FunctionParser.parseFunctionAnyParameter("foo(\"test\")"); assertThat(parameters, equalTo(Arrays.asList((Object) "foo", "test"))); }
@Test public void parseFunctionAnyParameters3() { List<Object> parameters = FunctionParser.parseFunctionAnyParameter("foo(1,2,3)"); assertThat(parameters, equalTo(Arrays.asList((Object) "foo", 1.0, 2.0, 3.0))); }
@Test public void parseFunctionAnyParameters4() { List<Object> parameters = FunctionParser.parseFunctionAnyParameter("foo(1,\"two\",3)"); assertThat(parameters, equalTo(Arrays.asList((Object) "foo", 1.0, "two", 3.0))); }
@Test public void parseFunctionAnyParameters5() { List<Object> parameters = FunctionParser.parseFunctionAnyParameter("foo( 1, \"two\" , 3 )"); assertThat(parameters, equalTo(Arrays.asList((Object) "foo", 1.0, "two", 3.0))); }
@Test public void parseFunctionAnyParameters6() { List<Object> parameters = FunctionParser.parseFunctionAnyParameter("foo()"); assertThat(parameters, equalTo(Arrays.asList((Object) "foo"))); }
@Test public void parseFunctionAnyParameters7() { List<Object> parameters = FunctionParser.parseFunctionAnyParameter("foo"); assertThat(parameters, equalTo(Arrays.asList((Object) "foo"))); }
@Test public void parseFunctionAnyParameters8() { List<Object> parameters = FunctionParser.parseFunctionAnyParameter("foo[]"); assertThat(parameters, nullValue()); }
@Test public void parseFunctionAnyParameters9() { List<Object> parameters = FunctionParser.parseFunctionAnyParameter("foo[]()"); assertThat(parameters, nullValue()); }