public Object getWrappedObject() {
return WRAPPING_TEMPLATE_MODEL_CONTAINED_OBJECT;
}
});
TagModel tagModel = new TagModel(stack, request, response) {
protected Component getBean() {
return bean;
}
};
tagModel.getWriter(new StringWriter(), params);
assertNotNull(bean);
assertEquals(bean.getProperty1(), true);
assertEquals(bean.getProperty2(), false);
assertEquals(bean.getProperty3(), "toby");