expect(comp1.getClientId()).andReturn("id1").anyTimes();
expect(comp1.peekClientId()).andReturn("id1").anyTimes();
expect(cycle.getInfrastructure()).andReturn(infra);
expect(infra.getOutputEncoding()).andReturn("UTF-8");
writer.printRaw("<?xml version=\"1.0\" encoding=\"UTF-8\"?>");
writer.printRaw("<!DOCTYPE html "
+ "PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" "
+ "\"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\" [" + NEWLINE
+ "<!ENTITY nbsp ' '>" + NEWLINE
+ "]>" + NEWLINE);