rules.add( "alpha", new TestRule( "Tom" ) );
rules.add( "alpha", new TestRule( "Dick" ) );
rules.addDefault( new TestRule( "Roger" ) );
rules.add( "alpha", new TestRule( "Harry" ) );
assertNotNull( "Rules should not be null", rules.rules() );
assertEquals( "Wrong order (1)", "Tom", ( (TestRule) rules.rules().get( 0 ) ).getIdentifier() );
assertEquals( "Wrong order (2)", "Dick", ( (TestRule) rules.rules().get( 1 ) ).getIdentifier() );
assertEquals( "Wrong order (3)", "Roger", ( (TestRule) rules.rules().get( 2 ) ).getIdentifier() );
assertEquals( "Wrong order (4)", "Harry", ( (TestRule) rules.rules().get( 3 ) ).getIdentifier() );
}