private LexerRuleBlock lexerBlock(final String literal) {
Terminal terminal = createMock(Terminal.class);
expect(terminal.getLiteral()).andReturn(literal);
EList<EObject> body = new BasicEList<EObject>();
LexerRuleBlock block = createMock(LexerRuleBlock.class);
body.add(terminal);
expect(block.eAllContents()).andReturn(newTreeIterator(body));
replay(terminal, block);
return block;
}