@Test
public void testCreate() throws Exception
{
String grammar = "%{REMOTE_ADDR}\" %{REMOTE_PORT} TEST [ABC] %{ABC}";
String input = "127.0.0.1\" 80 TEST [ABC] abc-value";
ParserGenerator gen = new ParserGenerator( grammar );
Parser<Map<String,String>> parser = gen.newParser();
Map<String,String> msg = parser.parse( input );
log.info( "Message parsed is: {}", msg );
for( String key : msg.keySet() ){
log.info( " {} = {}", key, msg.get( key ) );
}