@Test
public void testWithCoordinateParameterGiven() throws Exception {

    // setup params
    Map<String, String> parameters = new HashMap<String, String>();
    CoordinateParamHandler h = new CoordinateParamHandler();
    parameters.put(h.getName(), "123_456");
    final ActionParameters params = createActionParams(parameters);
    handler.handleAction(params);
    JSONObject responseState = getResponseJSON().optJSONObject("configuration").optJSONObject("mapfull").optJSONObject("state");
    assertEquals("Should have requested east", "123", responseState.opt("east"));
    assertEquals("Should have requested north", "456", responseState.opt("north"));
    // coordinates should be set as in param and Oskari.mapframework.bundle.mapmodule.plugin.GeoLocationPlugin plugin should have been removed from config
    verifyResponseContent(ResourceHelper.readJSONResource("GetAppSetupHandlerTest-coordinate-params.json", this));
}