public void testPrependAppendRemove() throws Exception {
SimpleObjectManager som = new SimpleObjectManager( TextualTransform.class );
TrimTransform tt = new TrimTransform();
som.prepend( tt );
assertTrue( (TextualTransform.class.getName()+": "+tt.getClass().getName()).equals( som.toString() ) );
try {
som.prepend( new Object() );
fail();
} catch( Exception e ) {}
CropTransform ct = new CropTransform();
som.prepend( ct );
assertTrue( (TextualTransform.class.getName()+": "+ct.getClass().getName()+", "+tt.getClass().getName())
.equals( som.toString() ) );
JavaStringEscapeTransform jset = new JavaStringEscapeTransform();
som.append( jset );
assertTrue( (TextualTransform.class.getName()+": "+ct.getClass().getName()+", "+tt.getClass().getName()+", "+jset.getClass().getName())
.equals( som.toString() ) );
som.remove( tt );
assertTrue( (TextualTransform.class.getName()+": "+ct.getClass().getName()+", "+jset.getClass().getName())