public void testTemplateBuilderGlobalContext() {
Template rootTemplate = new Template();
rootTemplate.setName("fooTemplate");
List<TestAction> actions = new ArrayList<TestAction>();
actions.add(new EchoAction());
rootTemplate.setActions(actions);
reset(applicationContextMock);
expect(applicationContextMock.getBean("fooTemplate", Template.class)).andReturn(rootTemplate).once();