  @Test
  public void testFiltersConditions() throws UniverseException {

    String request1 = "universe [testUniverse];\n" +
        "select [Measure].[name5]\n" +
        "where [Filter].[name3];";
    String request2 = "universe [testUniverse];\n" +
        "select [Measure].[name5]\n" +
        "where [Measure].[name5] > 2 and [Filter].[name3];";
    String request3 = "universe [testUniverse];\n" +
        "select [Measure].[name5]\n" +
        "where [Filter].[name3] or [Measure].[name5];";
    String request4 = "universe [testUniverse];\n" +
        "select [Measure].[name5]\n" +
        "where [Filter].[name3] and [Measure].[name5] is null;";
    UniverseQuery universeQuery = universeUtil.convertQuery(request1, universeClient, null);
    assertEquals("<predefinedFilter path=\"Filter|folder\\name3|filter\" id=\"name3id\"/>\n",
        universeQuery.getWhere());
    universeQuery = universeUtil.convertQuery(request2, universeClient, null);
    assertEquals("<and>\n" +
            "<comparisonFilter path=\"Measure|folder\\name5|measure\" operator=\"GreaterThan\" id=\"name5id\">\n" +
            "<constantOperand>\n" +
            "<value>\n" +
            "<caption type=\"Numeric\">2</caption>\n" +
            "</value>\n" +
            "</constantOperand>\n" +
            "</comparisonFilter>\n\n" +
            "<predefinedFilter path=\"Filter|folder\\name3|filter\" id=\"name3id\"/>\n\n" +
            "</and>\n",
        universeQuery.getWhere());
    universeQuery = universeUtil.convertQuery(request3, universeClient, null);
    assertEquals("<or>\n" +
            "<predefinedFilter path=\"Filter|folder\\name3|filter\" id=\"name3id\"/>\n\n" +
            "<predefinedFilter path=\"Measure|folder\\name5|measure\" id=\"name5id\"/>\n\n" +
            "</or>\n",
        universeQuery.getWhere());
    universeQuery = universeUtil.convertQuery(request4, universeClient, null);
    assertEquals("<and>\n" +
            "<predefinedFilter path=\"Filter|folder\\name3|filter\" id=\"name3id\"/>\n\n" +
            "<comparisonFilter id=\"name5id\" path=\"Measure|folder\\name5|measure\" operator=\"IsNull\"/>\n\n" +
            "</and>\n",
        universeQuery.getWhere());
  }