BusinessObjectDataStorageFileRestController extends HerdBaseController { @RequestMapping(value = "/businessObjectDataStorageFiles", method = RequestMethod.POST, consumes = {"application/xml", "application/json"}) @Secured(SecurityFunctions.FN_BUSINESS_OBJECT_DATA_STORAGES_FILES_POST) public BusinessObjectDataStorageFilesCreateResponse createBusinessObjectDataStorageFiles( @RequestBody BusinessObjectDataStorageFilesCreateRequest businessObjectDataStorageFilesCreateRequest) { return businessObjectDataStorageFileService.createBusinessObjectDataStorageFiles(businessObjectDataStorageFilesCreateRequest); }  @RequestMapping(value = "/businessObjectDataStorageFiles", method = RequestMethod.POST, consumes = {"application/xml", "application/json"}) @Secured(SecurityFunctions.FN_BUSINESS_OBJECT_DATA_STORAGES_FILES_POST) BusinessObjectDataStorageFilesCreateResponse createBusinessObjectDataStorageFiles(
        @RequestBody BusinessObjectDataStorageFilesCreateRequest businessObjectDataStorageFilesCreateRequest);  }
@Test public void testCreateBusinessObjectDataStorageFiles() { BusinessObjectDataStorageFilesCreateResponse response = new BusinessObjectDataStorageFilesCreateResponse(); BusinessObjectDataStorageFilesCreateRequest request = new BusinessObjectDataStorageFilesCreateRequest(NAMESPACE, BDEF_NAME, FORMAT_USAGE_CODE, FORMAT_FILE_TYPE_CODE, FORMAT_VERSION, PARTITION_VALUE, null, DATA_VERSION, STORAGE_NAME, null, NO_DISCOVER_STORAGE_FILES); when(businessObjectDataStorageFileService.createBusinessObjectDataStorageFiles(request)).thenReturn(response); BusinessObjectDataStorageFilesCreateResponse resultResponse = businessObjectDataStorageFileRestController.createBusinessObjectDataStorageFiles(request); verify(businessObjectDataStorageFileService).createBusinessObjectDataStorageFiles(request); verifyNoMoreInteractions(businessObjectDataStorageFileService); assertEquals(response, resultResponse); }