throws IOException, SQLException, SOAPException {
IMocksControl control = EasyMock.createNiceControl();
RMMessage msg = control.createMock(RMMessage.class);
EasyMock.expect(msg.getMessageNr()).andReturn(mn);
MessageContext ctx = new GenericMessageContext();
ctx.put("a", "astring");
ctx.put("b", Boolean.TRUE);
ctx.put("c", new Integer(Integer.MIN_VALUE));
ctx.put("d", mn);
ctx.put("e", this);
InputStream mis = RMHandlerTest.class.getResourceAsStream("resources/GreetMeDocLiteralRequest.xml");
SOAPBindingImpl binding = new SOAPBindingImpl(false);
SOAPMessage smsg = binding.getMessageFactory().createMessage(null, mis);
ctx.put(SOAP_MSG_KEY, smsg);
InputStream cis = RMUtils.getPersistenceUtils().getContextAsInputStream(ctx);
EasyMock.expect(msg.getContextAsStream()).andReturn(cis);
control.replay();
store.beginTransaction();