private void checkQuerySets(Context context) {
   QuerySet querySetOne = context.getQuerySetByPath("/xml/correct/query1.xml");
   QuerySet querySetTwo = context.getQuerySetByPath("/xml/correct/query2.xml");
   checkQuerySetOne(querySetOne);
   checkQuerySetTwo(querySetTwo);
   Query queryOne =
       getQueryByCompositeId(context, buildCompositeId(DB_TEST, COLLECTION_ONE, QUERY_1));
   Query queryTwo =
       getQueryByCompositeId(context, buildCompositeId(DB_TEST, COLLECTION_ONE, QUERY_2));
   Query queryThree =
       getQueryByCompositeId(context, buildCompositeId(DB_TEST_ROOT, COLLECTION_TWO, QUERY_3));
   Query queryFour =
       getQueryByCompositeId(context, buildCompositeId(DB_TEST_ROOT, COLLECTION_TWO, QUERY_4));
   Query notExist =
       getQueryByCompositeId(
           context, buildCompositeId(DB_TEST, COLLECTION_ONE, QUERY_NON_EXISTENT));
   Assert.assertNotNull(queryOne);
   Assert.assertNotNull(queryTwo);
   Assert.assertNotNull(queryThree);
   Assert.assertNotNull(queryFour);
   Assert.assertNull(notExist);
   checkQueryOne(queryOne);
   checkQueryTwo(queryTwo);
   checkQueryThree(queryThree);
   checkQueryFour(queryFour);
 }
 private void checkContext(Context context) {
   Assert.assertTrue(CollectionUtils.isNotEmpty(context.getQuerySets()));
   Assert.assertEquals(context.getQuerySets().size(), 2);
   Assert.assertEquals(context.getDatabasePort(), DB_PORT);
   Assert.assertEquals(context.getDatabaseHost(), DB_HOST);
   Assert.assertEquals(context.getQueryExecutorType(), QueryExecutorType.MONGO_DRIVER);
   Assert.assertEquals(context.getQueryAnalyzerType(), QueryAnalyzerType.JEXL);
   //        Assert.assertNotNull(context.getConverters());
   //        Assert.assertNotNull(context.getConverters().get("simpleDomainConverter"));
   //        Assert.assertTrue(context.getConverters().get("simpleDomainConverter") instanceof
   // SimpleDomainConverter);
   Assert.assertNotNull(context.getDefaultConverter());
   Assert.assertTrue(context.getDefaultConverter() instanceof DefaultConverter);
 }
 private Query getQueryByCompositeId(Context context, String id) {
   return context.getQueryByCompositeId(id);
 }