}
public void testConditionalExpressionError()
{
MockControl ehControl = newControl(ErrorHandler.class);
ErrorHandler eh = (ErrorHandler) ehControl.getMock();
RegistryDefinition definition = new RegistryDefinitionImpl();
Log log = LogFactory.getLog(XmlModuleDescriptorProcessor.class);
Location location = newLocation();
eh.error(
log,
"Unexpected token <AND> in expression 'and class foo'.",
location,
new RuntimeException());
ehControl.setMatcher(new AggregateArgumentsMatcher(new ArgumentMatcher[]