}
@Test
public final void readEmbedWidgetAndStoreAsPage() {
Renderable widget = compiler()
.compile(TestBackingType.class, new Template("<xml><div class='content'>hello @MyFave(should=false)<a href='/hi/${id}'>hideme</a></div></xml>"));
assert null != widget : " null ";
//tell pagebook to track this as an embedded widget
pageBook.embedAs(MyEmbeddedPage.class, MyEmbeddedPage.MY_FAVE_ANNOTATION)
.apply(Chains.terminal());
final Respond mockRespond = RespondersForTesting.newRespond();
widget.render(new TestBackingType("Dhanji", "content", 12), mockRespond);
final String s = mockRespond.toString();
assert "<xml><div class=\"content\">hello </div></xml>"
.equals(s) : "Did not write expected output, instead: " + s;
}