@Test
public void onAction() throws Exception {

    Document reqDoc = DocumentUtils.stringToDocument("<rpc/>");
    ActionRequest req = new ActionRequest();
    ActionResponse resp = new ActionResponse();
    req.setActionTreeElement(reqDoc.getDocumentElement());
    listener.onAction(client, req, resp);
    assertTrue(resp.isOk());
}