}
@Test
public void newInstance() {
try {
new TemplateContextAdapter(null, null);
fail();
} catch (IllegalArgumentException e) {
assertThat(e, exception("request"));
}
try {
new TemplateContextAdapter(request, null);
fail();
} catch (IllegalArgumentException e) {
assertThat(e, exception("templateContext"));
}
}