@Test
public void testGetTagTypes() throws Exception
{

    TagTypeKeys tagTypeKeys = new TagTypeKeys(Arrays.asList(new TagTypeKey(TAG_TYPE)));
    when(tagTypeService.getTagTypes()).thenReturn(tagTypeKeys);
    // Retrieve a list of tag type keys.
    TagTypeKeys resultTagTypeKeys = tagTypeRestController.getTagTypes();
    // Verify the external calls.
    verify(tagTypeService).getTagTypes();
    verifyNoMoreInteractions(tagTypeService);
    // Validate the returned object.
    assertEquals(tagTypeKeys, resultTagTypeKeys);
}