public class SimplePropertiesStringParserTest {
@Test
public void testContent() {
String inputMessage="session=0,action=1";
MessageParser<String,Properties> parser=new SimplePropertiesStringParser();
Message<Properties> message=parser.parse(inputMessage);
assertNotNull(message);
assertNotNull(message.getContent());
assertEquals("0",message.getContent().getProperty("session"));
assertEquals("1",message.getContent().getProperty("action"));
assertEquals("2",message.getContent().getProperty("unknownTestDefault","2"));