* @throws IOException when the example cannot be read
*/
private static Collection<CoffeeScriptLexerTestToken> getExpectedTokens(String example) throws IOException {
final FlexAdapter lexer = new CoffeeScriptFlexLexer();
lexer.start(readFile(example, FileType.COFFEE));
ArrayList<CoffeeScriptLexerTestToken> tokens = new ArrayList<CoffeeScriptLexerTestToken>();
while (lexer.getCurrentPosition().getOffset() < lexer.getBufferEnd()) {
CoffeeScriptLexerTestToken token = new CoffeeScriptLexerTestToken(lexer.getTokenType(), lexer.getTokenSequence());
tokens.add(token);