@Test
public void check_add_javascript_calls_component_resources_to_create_url()
{
Object [] context = new Object[]{ "something", "somewhere" };
ComponentResources resources = mockComponentResources();
JavaScriptSupport javaScriptSupport = mockJavaScriptSupport();
Link link = mockLink();
Zone zone = mockZone();
ZoneRefresh zoneRefresh = new ZoneRefresh(context, resources, javaScriptSupport, zone);
expect(resources.createEventLink("zoneRefresh", context)).andReturn(link);
expect(link.toAbsoluteURI()).andReturn("mylink");
JSONObject params = new JSONObject();
params.put("period", 0);
params.put("id", zone.getClientId());