// Open a connection to the endpoint
HttpURLConnection connection =
FaultTestUtils.getHttpURLConnection("http://127.0.0.1:" + serverPort + "/axis2/services/RMSampleService",
pingAction);
StorageManager storageManager =
SandeshaUtil.getSandeshaStorageManager(serverConfigContext, serverConfigContext.getAxisConfiguration());
RMDBeanMgr rmdBeanMgr = storageManager.getRMDBeanMgr();
String seqID = SandeshaUtil.getUUID();
// Mockup an RMDBean
RMDBean rmdBean = new RMDBean();
rmdBean.setSequenceID(seqID);
rmdBean.setToEPR(AddressingConstants.Final.WSA_ANONYMOUS_URL);
rmdBean.setAcksToEPR(AddressingConstants.Final.WSA_ANONYMOUS_URL);
rmdBean.setReplyToEPR(AddressingConstants.Final.WSA_ANONYMOUS_URL);
rmdBean.setRMVersion(Sandesha2Constants.SPEC_VERSIONS.v1_1);
rmdBean.setServerCompletedMessages(new RangeString());
// Flag that the sequence is closed.
rmdBean.setClosed(true);
// Create a transaction and insert the RMSBean
Transaction tran = storageManager.getTransaction();
rmdBeanMgr.insert(rmdBean);
tran.commit();