@Test
public void formattingIsCorrectIfOneParameter() {

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