@Test
public void whenNoParamsSpecifiedReturnsOnlyAlerts()
        throws JsonProcessingException, UnsupportedEncodingException, ActionException {

    ByteArrayOutputStream responseBody = new ByteArrayOutputStream();
    ActionParameters params = new ActionParameters();
    params.setRequest(mockHttpServletRequest());
    params.setResponse(mockHttpServletResponse(responseBody));
    handler.handleAction(params);
    String actual = responseBody.toString("UTF-8");
    String expected = "{'backendstatus':["
            + "{'maplayer_id':4,'status':'DOWN','statusjson':null,'infourl':'http://foo.bar/54321','ts':null}"
            + "]}";
    expected = expected.replace('\'', '"');
    assertEquals(expected, actual);
}