@Test
public void testIsValidDefinitionException() {
Request request = createMock(Request.class);
expect(definitionsFactory.getDefinition("definition", request))
.andThrow(new NoSuchDefinitionException());
replay(applicationContext, attributeEvaluatorFactory,
definitionsFactory, preparerFactory, rendererFactory, request);
assertFalse(container.isValidDefinition("definition", request));
verify(applicationContext, attributeEvaluatorFactory,