java.util.Date message1DT=makeUTCDateTime(2009, Calendar.NOVEMBER, 19, 12, 0, 0);
String messageId1="msg1";
String resourceURL1=getRequestHostnameAndContext(request)+request.getServletPath()+"/1/messaging/inbound/registrations/"+urlEncode(registrationId)+"/messages/"+urlEncode(messageId1);
InboundMessage message1=new InboundMessage(message1DT, "3456", messageId1, resourceURL1, "+447825123456");
message1.setInboundMMSMessage(new InboundMMSMessage("Msg 1 subject", null));
java.util.Date message2DT=makeUTCDateTime(2009, Calendar.NOVEMBER, 19, 14, 30, 25);
String messageId2="msg2";
String resourceURL2=getRequestHostnameAndContext(request)+request.getServletPath()+"/1/messaging/inbound/registrations/"+urlEncode(registrationId)+"/messages/"+urlEncode(messageId2);
InboundMessage message2=new InboundMessage(message2DT, "3456", messageId2, resourceURL2, "+447825789123");
message2.setInboundMMSMessage(new InboundMMSMessage("Msg 2 subject", null));
if (maxBatchSize==1) {
InboundMessage[] messages={message1};
inboundMessageList.setNumberOfMessagesInThisBatch(1);
inboundMessageList.setInboundMessage(messages);