l_fail) {     //Arrange     CGatewayMocks mocks;      setup_0module_gw(mocks, (char *)VALID_JSON_PATH);      // modules array     setup_parse_modules_entry(mocks, 0, "module0");     setup_parse_modules_entry(mocks, 0, "module0");      // links entry     STRICT_EXPECTED_CALL(mocks, VECTOR_create(sizeof(GATEWAY_LINK_ENTRY)));     STRICT_EXPECTED_CALL(mocks, json_array_get_count(IGNORED_PTR_ARG))         .IgnoreArgument(0)         .SetReturn(0);      setup_links_entry(mocks, 0, "module0", "module0");     setup_links_entry(mocks, 0, "module0", "module0");      STRICT_EXPECTED_CALL(mocks, gballoc_malloc(sizeof(GATEWAY_HANDLE_DATA)))