GlobalAttributeDefinitionRestController { @RequestMapping(value = GLOBAL_ATTRIBUTE_DEFINITIONS_URI_PREFIX + "/globalAttributeDefinitionLevels/{globalAttributeDefinitionLevel}/globalAttributeDefinitionNames/{globalAttributeDefinitionName}", method = RequestMethod.DELETE) @Secured(SecurityFunctions.FN_GLOBAL_ATTRIBUTE_DEFINITIONS_DELETE) public GlobalAttributeDefinition deleteGlobalAttributeDefinition(@PathVariable("globalAttributeDefinitionLevel") String globalAttributeDefinitionLevel, @PathVariable("globalAttributeDefinitionName") String globalAttributeDefinitionName) { GlobalAttributeDefinitionKey globalAttributeDefinitionKey = new GlobalAttributeDefinitionKey(globalAttributeDefinitionLevel, globalAttributeDefinitionName); return globalAttributeDefinitionService.deleteGlobalAttributeDefinition(globalAttributeDefinitionKey); }  @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; }
@Test public void testDeleteGlobalAttributeDefinition() { GlobalAttributeDefinitionKey globalAttributeDefinitionKey = new GlobalAttributeDefinitionKey(GLOBAL_ATTRIBUTE_DEFINITON_LEVEL, GLOBAL_ATTRIBUTE_DEFINITON_NAME); GlobalAttributeDefinition globalAttributeDefinition = new GlobalAttributeDefinition(INTEGER_VALUE, globalAttributeDefinitionKey, attributeValueListNull); when(globalAttributeDefinitionService.deleteGlobalAttributeDefinition(globalAttributeDefinitionKey)).thenReturn(globalAttributeDefinition); GlobalAttributeDefinition response = globalAttributeDefinitionRestController.deleteGlobalAttributeDefinition(GLOBAL_ATTRIBUTE_DEFINITON_LEVEL, GLOBAL_ATTRIBUTE_DEFINITON_NAME); verify(globalAttributeDefinitionService).deleteGlobalAttributeDefinition(globalAttributeDefinitionKey); verifyNoMoreInteractions(globalAttributeDefinitionService); assertEquals(globalAttributeDefinition, response); }