/**
   * Creates the mapping object.
   *
   * @param conceptId the concept id
   */
  private void createMappingObject(String conceptId) {

    SnomedConcept concept = TerminologyConceptUtils.getConceptForID(testTerminologyDAO, conceptId);
    assertNotNull("Concept must not be null", concept);
    // create expression object.
    ClinicalExpression clinicalExpression =
        testEntityFactoryService.getExpression(new CloseToUserExpressionImpl(concept));
    assertNotNull("Clinical Expression can not be null", clinicalExpression);
    ExpressionMappingObject expressionMappingObject = new ExpressionMappingObjectImpl();
    expressionMappingObject.setCloseToUserCGForm(clinicalExpression.getCompositionalGrammarForm());
    expressionMappingObject.setNormalFormCGForm(
        clinicalExpression.getCompositionalGrammarNormalForm());
    expressionMappingObject.setSituationNormalFormCGForm(
        clinicalExpression.getCompositionalSituationNormalForm());
    expressionMappingObject.setCloseToUserExpressionUuid(clinicalExpression.getUuid());
    expressionMappingObject.setNormalFormExpressionUuid(clinicalExpression.getNormalFormUuid());
    expressionMappingObject.setSituationNormalFormExpressionUuid(
        clinicalExpression.getSituationNormalFormUuid());
    assertNotNull("Expression Mapping Object can not be null", expressionMappingObject);
    assertNotNull("Expression Mapping object DAO can not be null", testExpressionMappingObjectDAO);

    // save object
    testExpressionMappingObjectDAO.save(expressionMappingObject);
    assertTrue(
        "Repo DB must contain at least 1 record.",
        testExpressionMappingObjectDAO.findAll().size() > 0);
  }
 /**
  * Test generate tc table.
  *
  * @throws Exception the exception
  */
 public void testGenerateTCTable() throws Exception {
   // use testExpressionSubsumptionRelationshipDAO to remove all entries in TC table
   testExpressionSubsumptionRelationshipDAO.deleteAll();
   assertEquals(
       "Database must contain 0 relationships after delete... ",
       0,
       testExpressionSubsumptionRelationshipDAO.findAllRelationships().size());
   // now populate TC table
   testExpressionTransitiveClosureTableGenerator.generateTCTable(true);
   assertTrue(
       "Database must contain more than one entry after populating...",
       testExpressionSubsumptionRelationshipDAO.findAllRelationships().size() > 0);
   // remove all entries in mapping objects table
   testExpressionMappingObjectDAO.deleteAll();
 }