### Question:
GlobalAttributeDefinitionRestController { @RequestMapping(value = GLOBAL_ATTRIBUTE_DEFINITIONS_URI_PREFIX, method = RequestMethod.POST, consumes = {"application/xml", "application/json"}) @Secured(SecurityFunctions.FN_GLOBAL_ATTRIBUTE_DEFINITIONS_POST) public GlobalAttributeDefinition createGlobalAttributeDefinition(@RequestBody GlobalAttributeDefinitionCreateRequest globalAttributeDefinitionCreateRequest) { return globalAttributeDefinitionService.createGlobalAttributeDefinition(globalAttributeDefinitionCreateRequest); }  @RequestMapping(value = GLOBAL_ATTRIBUTE_DEFINITIONS_URI_PREFIX, method = RequestMethod.POST, consumes = {"application/xml", "application/json"}) @Secured(SecurityFunctions.FN_GLOBAL_ATTRIBUTE_DEFINITIONS_POST) GlobalAttributeDefinition createGlobalAttributeDefinition(@RequestBody GlobalAttributeDefinitionCreateRequest globalAttributeDefinitionCreateRequest); @RequestMapping(value = GLOBAL_ATTRIBUTE_DEFINITIONS_URI_PREFIX + "/globalAttributeDefinitionLevels/{globalAttributeDefinitionLevel}/globalAttributeDefinitionNames/{globalAttributeDefinitionName}", method = RequestMethod.DELETE) @Secured(SecurityFunctions.FN_GLOBAL_ATTRIBUTE_DEFINITIONS_DELETE) GlobalAttributeDefinition deleteGlobalAttributeDefinition(@PathVariable("globalAttributeDefinitionLevel") String globalAttributeDefinitionLevel,
        @PathVariable("globalAttributeDefinitionName") String globalAttributeDefinitionName); @RequestMapping(value = GLOBAL_ATTRIBUTE_DEFINITIONS_URI_PREFIX, method = RequestMethod.GET) @Secured(SecurityFunctions.FN_GLOBAL_ATTRIBUTE_DEFINITIONS_ALL_GET) GlobalAttributeDefinitionKeys getGlobalAttributeDefinitions(); @RequestMapping(value = GLOBAL_ATTRIBUTE_DEFINITIONS_URI_PREFIX + "/globalAttributeDefinitionLevels/{globalAttributeDefinitionLevel}/globalAttributeDefinitionNames/{globalAttributeDefinitionName}", method = RequestMethod.GET) @Secured(SecurityFunctions.FN_GLOBAL_ATTRIBUTE_DEFINITIONS_GET) GlobalAttributeDefinition getGlobalAttributeDefinition(@PathVariable("globalAttributeDefinitionLevel") String globalAttributeDefinitionLevel,
        @PathVariable("globalAttributeDefinitionName") String globalAttributeDefinitionName); final static String GLOBAL_ATTRIBUTE_DEFINITIONS_URI_PREFIX; }### Answer:
@Test public void testCreateGlobalAttributeDefinition() { GlobalAttributeDefinitionKey globalAttributeDefinitionKey = new GlobalAttributeDefinitionKey(GLOBAL_ATTRIBUTE_DEFINITON_LEVEL, GLOBAL_ATTRIBUTE_DEFINITON_NAME); GlobalAttributeDefinitionCreateRequest request = new GlobalAttributeDefinitionCreateRequest(globalAttributeDefinitionKey, attributeValueListKeyNull); GlobalAttributeDefinition globalAttributeDefinition = new GlobalAttributeDefinition(); when(globalAttributeDefinitionService.createGlobalAttributeDefinition(request)).thenReturn(globalAttributeDefinition); GlobalAttributeDefinition response = globalAttributeDefinitionRestController.createGlobalAttributeDefinition(request); verify(globalAttributeDefinitionService).createGlobalAttributeDefinition(request); verifyNoMoreInteractions(globalAttributeDefinitionService); assertEquals(globalAttributeDefinition, response); }