@Test
public void testSingleJoin() {

    Join[] joins = JoinParser.parse("User u");
    assertEquals(1, joins.length);
    assertEquals("User", joins[0].getRelation());
    assertEquals("u", joins[0].getAlias());
    joins = JoinParser.parse("User  u ");
    assertEquals(1, joins.length);
    assertEquals("User", joins[0].getRelation());
    assertEquals("u", joins[0].getAlias());
    joins = JoinParser.parse("  User  u ");
    assertEquals(1, joins.length);
    assertEquals("User", joins[0].getRelation());
    assertEquals("u", joins[0].getAlias());
}