@Test
public void testQueryResponseMapArray() {

    Map<String, Object>[] queryData = new Map[2];
    queryData[0] = new LinkedHashMap<>();
    queryData[0].put("msg", "val");
    queryData[0].put("val", "msg");
    queryData[1] = new LinkedHashMap<>();
    queryData[1].put("message", "value");
    queryData[1].put("value", "message");
    
    markWsConnected(true);
    client.sendQueryResponse(200, queryAddress, queryData);
    
    // The ArrayList creation is necessary since JSON interprets arrays as ArrayList
    assert socket.compareData("body", new ArrayList<Map>(Arrays.asList(queryData)));
    assert socket.compareData("headers." + ExtensionServiceMessage.RESPONSE_ADDRESS_HEADER, queryAddress);
    assert socket.compareData("status", 200);
}