barin.setContent( bartext );
SectionSet foobarin = new SectionSet();
foobarin.addSection( fooin );
foobarin.addSection( barin );
Identity identity = new Identity();
Section fooout = identity.modify( fooin, mps );
assertTrue( fooout.getContent().equals( footext ) );
assertTrue( fooout.getName().equals( fooname ) );
identity.modify( barin, mps );
assertTrue( barin.getContent().equals( bartext ) );
assertTrue( barin.getName().equals( barname ) );
SectionSet foobarout = identity.modify( foobarin, mps );
Enumeration sectionEnum = foobarout.enumerateSections();
while( sectionEnum.hasMoreElements() ) {
Section section = (Section) sectionEnum.nextElement();
if( fooname.equals( section.getName() ) ) {
assertTrue( section.getContent().equals( footext ) );