@Test
public void testGetTags()
{

    List<TagChild> tagChildren = new ArrayList<>();
    tagChildren.add(new TagChild(new TagKey(TAG_TYPE, TAG_CODE), false));
    tagChildren.add(new TagChild(new TagKey(TAG_TYPE, TAG_CODE_2), false));
    TagListResponse tagListResponse = new TagListResponse();
    tagListResponse.setTagChildren(tagChildren);
    when(tagService.getTags(TAG_TYPE, TAG_CODE)).thenReturn(tagListResponse);
    // Retrieve the tag.
    TagListResponse resultTagKeys = tagRestController.getTags(TAG_TYPE, TAG_CODE);
    // Verify the external calls.
    verify(tagService).getTags(TAG_TYPE, TAG_CODE);
    verifyNoMoreInteractions(tagService);
    // Validate the returned object.
    assertEquals(tagListResponse, resultTagKeys);
    ;
}