private void checkQueryFour(Query query) {
   Assert.assertEquals(query.getId(), "query-4");
   Assert.assertEquals(
       query.getBody(),
       "{'body' : 'query-4'},{'body' : 'query-4-fragment'},{'body' : 'query-4-continue'}");
   Assert.assertTrue(CollectionUtils.isEmpty(query.getCases()));
 }
  private void checkQueryOne(Query query) {
    Assert.assertEquals(query.getId(), "query-1");
    Assert.assertEquals(query.getBody(), "{'query' : 'body'}");
    Assert.assertEquals(query.getConverter(), "simpleDomainConverter");
    Assert.assertNotNull(query.getCases());
    Assert.assertTrue(CollectionUtils.isNotEmpty(query.getCases()));
    Assert.assertEquals(query.getCases().size(), 3);
    QueryCase queryCase1 = query.getQueryCaseById("caseOne");
    QueryCase queryCase2 = query.getQueryCaseById("caseTwo");
    QueryCase queryCase3 = query.getQueryCaseById("caseThree");
    Assert.assertEquals(queryCase1.getId(), "caseOne");
    Assert.assertEquals(queryCase1.getCondition(), "name == 'john'");
    Assert.assertEquals(queryCase1.getBody(), "{'case' : '#name'},{'body' : 'query-1-fragment'}");
    Assert.assertEquals(queryCase1.getConverter(), "simpleDomainConverter");
    Assert.assertEquals(queryCase1.getConverterMethod(), "customConvertMethod");
    Assert.assertEquals(queryCase1.getPriority(), 10);

    Assert.assertEquals(queryCase2.getId(), "caseTwo");
    Assert.assertEquals(queryCase2.getCondition(), "name == 'jack'");
    Assert.assertEquals(queryCase2.getBody(), "{'case' : '#name'}");
    Assert.assertEquals(queryCase2.getConverter(), null);
    Assert.assertEquals(queryCase2.getConverterMethod(), null);
    Assert.assertEquals(queryCase2.getPriority(), 5);

    Assert.assertEquals(queryCase3.getId(), "caseThree");
    Assert.assertEquals(queryCase3.getCondition(), "name == 'jack'");
    Assert.assertEquals(queryCase3.getBody(), "{'case' : '#name'}");
    Assert.assertEquals(queryCase3.getConverter(), "simpleDomainConverter");
    Assert.assertEquals(queryCase3.getConverterMethod(), "customConvertMethod");
    Assert.assertEquals(queryCase3.getPriority(), 0);
  }
 private void checkQueryThree(Query query) {
   Assert.assertEquals(query.getId(), "query-3");
   Assert.assertEquals(query.getBody(), "{'body' : 'query-3'}");
   Assert.assertTrue(CollectionUtils.isEmpty(query.getCases()));
 }