protected Logger logger = LoggerFactory.getLogger(getClass());
@Test
public void testMarshallerRopRequest() throws Exception {
RopRequest ropRequest = mock(RopRequest.class);
RopRequestContext msc = mock(RopRequestContext.class);
when(ropRequest.getRopRequestContext()).thenReturn(msc);
HashMap<String, String> map = new HashMap<String, String>();
map.put("key1", "key1Value");
map.put("key2", "key2Value");
map.put("key3", "key3Value");
when(msc.getAllParams()).thenReturn(map);
String message = MessageMarshallerUtils.getMessage(ropRequest, MessageFormat.json);
assertNotNull(message);
logger.info("json:{}",message);
assertTrue(message.indexOf("}") > -1);
assertTrue(message.indexOf("{") > -1);