}
@Test
public void testChaining()
{
Substitutor a = new SubstitutorStub( "XYZ", "", "a", "", "abc" );
Substitutor b = new SubstitutorStub( "STU", "", "b", "", "bcd" );
Substitutor test = new CompoundSubstitutor( a, b );
AttributesImpl attribFixture = new AttributesImpl( attrib );
attribFixture.addAttribute( "", "a", ":a", "", "abc" );
attribFixture.addAttribute( "", "b", ":b", "", "bcd" );
assertTrue( areEqual( test.substitute( attrib ), attribFixture ) );
assertEquals( test.substitute( bodyText ), "STU" );
}