assertThat( rule, notNullValue() );
assertThat( rule.name(), nullValue() );
assertThat( rule.pattern(), nullValue() );
assertThat( rule.directions().size(), is( 1 ) );
assertThat( rule.directions(), contains( UrlRewriter.Direction.IN ) );
assertThat( rule.flow(), nullValue() );
reader = new StringReader( "<rules><rule flow=\"all\"></rule></rules>" );
config = digester.parse( reader );
assertThat( config.getRules().size(), is( 1 ) );
rule = config.getRules().get( 0 );