@Test
public void formattingIsCorrectIfMultipleParameters() {

    NormalInvocation normalInvocation = new NormalInvocation(FUNCTION_NAME, PARAMETER_1, PARAMETER_2, PARAMETER_3);
    String expected = format("\n{0}(\"{1}\",\"{2}\",\"{3}\");\n", FUNCTION_NAME, PARAMETER_1, PARAMETER_2, PARAMETER_3);
    String actual = normalInvocation.getJavascriptCode();
    assertEquals(expected, actual);
}