@Test
public void testGetTagChildrenEntities()
{

    // Create a tag type entity
    TagTypeEntity tagTypeEntity = new TagTypeEntity();
    tagTypeEntity.setCode(TAG_TYPE_CODE);
    // Create a tag entity
    TagEntity tagEntity = new TagEntity();
    tagEntity.setTagType(tagTypeEntity);
    tagEntity.setTagCode(TAG_CODE);
    tagEntity.setDisplayName(TAG_DISPLAY_NAME);
    // Create a parent tag entities array list
    List<TagEntity> parentTagEntities = new ArrayList<>();
    parentTagEntities.add(tagEntity);
    // Setup when clauses
    when(configurationHelper.getProperty(ConfigurationValue.MAX_ALLOWED_TAG_NESTING, Integer.class)).thenReturn(1);
    when(tagDao.getChildrenTags(parentTagEntities)).thenReturn(parentTagEntities);
    // Call the method under test
    List<TagEntity> result = tagDaoHelper.getTagChildrenEntities(tagEntity);
    // Confirm the result value
    assertThat("Result not equal to parent tag entities list.", result, is(equalTo(parentTagEntities)));
    // Setup verify clauses
    verify(configurationHelper).getProperty(ConfigurationValue.MAX_ALLOWED_TAG_NESTING, Integer.class);
    verify(tagDao).getChildrenTags(parentTagEntities);
    verifyNoMoreInteractions(configurationHelper, tagDao);
}