@SuppressWarnings("unchecked")
@Test(expected = FreemarkerRequestException.class)
public void testGetKeysException() throws TemplateModelException {
Template template = createMock(Template.class);
TemplateHashModelEx model = createMock(TemplateHashModelEx.class);
TemplateModel valueModel = createMock(TemplateModel.class);
Configuration configuration = createMock(Configuration.class);
Set<String> names = createMock(Set.class);
Iterator<String> namesIt = createMock(Iterator.class);
Writer writer = new StringWriter();