@Test
public void testGetTag()
{

    TagKey tagKey = new TagKey(TAG_TYPE, TAG_CODE);
    Tag tag = getNewTag(tagKey);
    when(tagService.getTag(tagKey)).thenReturn(tag);
    // Retrieve the tag.
    Tag resultTag = tagRestController.getTag(TAG_TYPE, TAG_CODE);
    // Verify the external calls.
    verify(tagService).getTag(tagKey);
    verifyNoMoreInteractions(tagService);
    // Validate the returned object.
    assertEquals(tag, resultTag);
}