}
public void testAttachmentLink4()
throws Exception
{
TestEngine testEngine2 = new TestEngine( props );
testEngine2.saveText( "TestPage", "foo ");
created.addElement( "TestPage" );
Attachment att = new Attachment( testEngine2, "TestPage", "TestAtt.txt" );
att.setAuthor( "FirstPost" );
testEngine2.getAttachmentManager().storeAttachment( att, testEngine.makeAttachmentFile() );
String src = "["+testEngine2.beautifyTitle("TestPage/TestAtt.txt")+"]";
assertEquals( "<a class=\"attachment\" href=\"/attach/TestPage/TestAtt.txt\">Test Page/TestAtt.txt</a>"+
"<a href=\"/PageInfo.jsp?page=TestPage/TestAtt.txt\" class=\"infolink\"><img src=\"/images/attachment_small.png\" border=\"0\" alt=\"(info)\" /></a>",
translate(testEngine2,src));
}