@Test
public void testGetTagEntity()
{

    // 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 tag key
    TagKey tagKey = new TagKey(TAG_TYPE_CODE, TAG_CODE);
    // Setup when clauses
    when(tagDao.getTagByKey(tagKey)).thenReturn(tagEntity);
    // Call method under test
    TagEntity result = tagDaoHelper.getTagEntity(tagKey);
    // Confirm the result value
    assertThat("Result not equal to tag entity.", result, is(equalTo(tagEntity)));
    // Setup verify clauses
    verify(tagDao).getTagByKey(tagKey);
    verifyNoMoreInteractions(configurationHelper, tagDao);
}