### Question:
ManagementRequestSender { static Integer getRequestId( SoapMessageImpl responseMessage) throws SOAPException { NodeList nodes = responseMessage .getSoap() .getSOAPBody() .getElementsByTagNameNS(SoapHeader.NS_XROAD, "requestId"); if (nodes.getLength() == 0) { return null; } Node node = nodes.item(0); try { return Integer.parseInt(node.getTextContent()); } catch (NumberFormatException e) { return null; } } ManagementRequestSender(ClientId sender, ClientId receiver); Integer sendAuthCertRegRequest(SecurityServerId securityServer, String address, byte[] authCert); Integer sendAuthCertDeletionRequest(SecurityServerId securityServer,
            byte[] authCert); Integer sendClientRegRequest(SecurityServerId securityServer,
            ClientId clientId); Integer sendClientDeletionRequest(SecurityServerId securityServer,
            ClientId clientId); Integer sendOwnerChangeRequest(SecurityServerId securityServer,
                                        ClientId clientId);  }### Answer:
@Test public void getRequestIdFromManagementServiceResponse() throws Exception { SoapMessageImpl response = createResponse("response-with-requestId.answer"); Integer requestId = ManagementRequestSender.getRequestId(response); Integer expectedRequestId = 413; assertEquals(expectedRequestId, requestId); }