@Test
public void testAnd() throws ParserException {

    final RootNode root = parser.parse("and(eq(username,123),eq(coolness,\"super\"),eq(username,854))");
    assertThat(root).isNotNull();
    assertThat(root.getChildren().size()).isEqualTo(1);
    final LogicalNode and = (LogicalNode) root.getChildren().get(0);
    assertThat(and.getName()).isEqualTo("and");
    assertThat(and.getType()).isEqualTo(LogicalNode.Type.AND);
    assertThat(and.getChildren().size()).isEqualTo(3);
}