BusinessObjectFormatExternalInterfaceRestController { @RequestMapping(value = BUSINESS_OBJECT_FORMAT_EXTERNAL_INTERFACES_URI_PREFIX, method = RequestMethod.POST, consumes = {"application/xml", "application/json"}) @Secured(SecurityFunctions.FN_BUSINESS_OBJECT_FORMAT_EXTERNAL_INTERFACES_POST) public BusinessObjectFormatExternalInterface createBusinessObjectFormatExternalInterface( @RequestBody BusinessObjectFormatExternalInterfaceCreateRequest businessObjectFormatExternalInterfaceCreateRequest) { return businessObjectFormatExternalInterfaceService.createBusinessObjectFormatExternalInterface(businessObjectFormatExternalInterfaceCreateRequest); }  @RequestMapping(value = BUSINESS_OBJECT_FORMAT_EXTERNAL_INTERFACES_URI_PREFIX, method = RequestMethod.POST, consumes = {"application/xml", "application/json"}) @Secured(SecurityFunctions.FN_BUSINESS_OBJECT_FORMAT_EXTERNAL_INTERFACES_POST) BusinessObjectFormatExternalInterface createBusinessObjectFormatExternalInterface(
        @RequestBody BusinessObjectFormatExternalInterfaceCreateRequest businessObjectFormatExternalInterfaceCreateRequest); @RequestMapping(value = BUSINESS_OBJECT_FORMAT_EXTERNAL_INTERFACES_URI_PREFIX + "/namespaces/{namespace}/businessObjectDefinitionNames/{businessObjectDefinitionName}/businessObjectFormatUsages/{businessObjectFormatUsage}" + "/businessObjectFormatFileTypes/{businessObjectFormatFileType}/externalInterfaceNames/{externalInterfaceName}", method = RequestMethod.DELETE) @Secured(SecurityFunctions.FN_BUSINESS_OBJECT_FORMAT_EXTERNAL_INTERFACES_DELETE) BusinessObjectFormatExternalInterface deleteBusinessObjectFormatExternalInterface(@PathVariable("namespace") String namespace,
        @PathVariable("businessObjectDefinitionName") String businessObjectDefinitionName,
        @PathVariable("businessObjectFormatUsage") String businessObjectFormatUsage,
        @PathVariable("businessObjectFormatFileType") String businessObjectFormatFileType, @PathVariable("externalInterfaceName") String externalInterfaceName); @RequestMapping(value = BUSINESS_OBJECT_FORMAT_EXTERNAL_INTERFACES_URI_PREFIX + "/namespaces/{namespace}/businessObjectDefinitionNames/{businessObjectDefinitionName}/businessObjectFormatUsages/{businessObjectFormatUsage}" + "/businessObjectFormatFileTypes/{businessObjectFormatFileType}/externalInterfaceNames/{externalInterfaceName}", method = RequestMethod.GET) @Secured(SecurityFunctions.FN_BUSINESS_OBJECT_FORMAT_EXTERNAL_INTERFACES_GET) BusinessObjectFormatExternalInterface getBusinessObjectFormatExternalInterface(@PathVariable("namespace") String namespace,
        @PathVariable("businessObjectDefinitionName") String businessObjectDefinitionName,
        @PathVariable("businessObjectFormatUsage") String businessObjectFormatUsage,
        @PathVariable("businessObjectFormatFileType") String businessObjectFormatFileType, @PathVariable("externalInterfaceName") String externalInterfaceName);  }
@Test public void testCreateBusinessObjectFormatExternalInterface() { BusinessObjectFormatExternalInterfaceCreateRequest businessObjectFormatExternalInterfaceCreateRequest = new BusinessObjectFormatExternalInterfaceCreateRequest( new BusinessObjectFormatExternalInterfaceKey(NAMESPACE, BDEF_NAME, FORMAT_USAGE_CODE, FORMAT_FILE_TYPE_CODE, EXTERNAL_INTERFACE)); BusinessObjectFormatExternalInterface businessObjectFormatExternalInterface = new BusinessObjectFormatExternalInterface(ID, new BusinessObjectFormatExternalInterfaceKey(NAMESPACE, BDEF_NAME, FORMAT_USAGE_CODE, FORMAT_FILE_TYPE_CODE, EXTERNAL_INTERFACE)); when(businessObjectFormatExternalInterfaceService.createBusinessObjectFormatExternalInterface(businessObjectFormatExternalInterfaceCreateRequest)) .thenReturn(businessObjectFormatExternalInterface); BusinessObjectFormatExternalInterface result = businessObjectFormatExternalInterfaceRestController.createBusinessObjectFormatExternalInterface(businessObjectFormatExternalInterfaceCreateRequest); assertEquals(businessObjectFormatExternalInterface, result); verify(businessObjectFormatExternalInterfaceService).createBusinessObjectFormatExternalInterface(businessObjectFormatExternalInterfaceCreateRequest); verifyNoMoreInteractions(businessObjectFormatExternalInterfaceService); }