super.tearDown();
}
public void testBilto() throws Exception
{
Gadget gadget = new Gadget();
gadget.setUserPref("user_pref");
TransientApplicationState<Gadget> state = new TransientApplicationState<Gadget>("bar", gadget);
Application<Gadget> gadgetApplication = Application.createGadgetApplication();
gadgetApplication.setState(state);
Page container = new Page();
container.setPageId("portal::test::gadget_page");
container.getChildren().add(gadgetApplication);
storage_.create(container);
container = storage_.getPage("portal::test::gadget_page");
gadgetApplication = (Application<Gadget>)container.getChildren().get(0);
gadget = storage_.load(gadgetApplication.getState(), ApplicationType.GADGET);
assertNotNull(gadget);
assertEquals("user_pref", gadget.getUserPref());
}