}
@Test
public void testTermEquality() {
lexer.setInput("BrotherOf(John) = EnemyOf(Saladin)");
Assert.assertEquals(new Token(LogicTokenTypes.FUNCTION, "BrotherOf"),
lexer.nextToken());
Assert.assertEquals(new Token(LogicTokenTypes.LPAREN, "("),
lexer.nextToken());
Assert.assertEquals(new Token(LogicTokenTypes.CONSTANT, "John"),
lexer.nextToken());
Assert.assertEquals(new Token(LogicTokenTypes.RPAREN, ")"),
lexer.nextToken());
Assert.assertEquals(new Token(LogicTokenTypes.EQUALS, "="),
lexer.nextToken());
Assert.assertEquals(new Token(LogicTokenTypes.FUNCTION, "EnemyOf"),
lexer.nextToken());
Assert.assertEquals(new Token(LogicTokenTypes.LPAREN, "("),
lexer.nextToken());
Assert.assertEquals(new Token(LogicTokenTypes.CONSTANT, "Saladin"),
lexer.nextToken());
Assert.assertEquals(new Token(LogicTokenTypes.RPAREN, ")"),
lexer.nextToken());
}