@Test
public void testMatchStep() throws Exception {
UrlRewriteRulesDescriptor rules = UrlRewriteRulesDescriptorFactory.create();
UrlRewriteRuleDescriptor rule = rules.addRule( "test-rule" ).pattern("test-pattern-rule");
UrlRewriteMatchDescriptor match = rule.addStep( "match" );
match.operation("test-operation").pattern( "test-pattern-step" ).flow( "all" );
StringWriter writer = new StringWriter();
UrlRewriteRulesDescriptorFactory.store( rules, "xml", writer );
String str = writer.toString();