test_class.declarator: businessObjectDataHelper
test_class.modifier: @Mock
      private
test_class.original_string: @Mock
      private BusinessObjectDataHelper businessObjectDataHelper;
test_class.type: BusinessObjectDataHelper
test_class.var_name: businessObjectDataHelper
test_class.declarator: notificationEventService
test_class.modifier: @Mock
      private
test_class.original_string: @Mock
      private NotificationEventService notificationEventService;
test_class.type: NotificationEventService
test_class.var_name: notificationEventService
test_class.declarator: uploadDownloadRestController
test_class.modifier: @InjectMocks
      private
test_class.original_string: @InjectMocks
      private UploadDownloadRestController uploadDownloadRestController;
test_class.type: UploadDownloadRestController
test_class.var_name: uploadDownloadRestController
test_class.declarator: uploadDownloadService
test_class.modifier: @Mock
      private
test_class.original_string: @Mock
      private UploadDownloadService uploadDownloadService;
test_class.type: UploadDownloadService
test_class.var_name: uploadDownloadService
test_class.file: herd-code/herd-rest/src/test/java/org/finra/herd/rest/UploadDownloadRestControllerTest.java
test_class.identifier: UploadDownloadRestControllerTest
test_class.superclass: extends AbstractRestTest
test_case.body: @Test
      public void testExtendUploadSingleCredentials()
      {
          // Create a response.
          UploadSingleCredentialExtensionResponse response =
              new UploadSingleCredentialExtensionResponse(AWS_ASSUMED_ROLE_ACCESS_KEY, AWS_ASSUMED_ROLE_SECRET_KEY, AWS_ASSUMED_ROLE_SESSION_TOKEN,
                  AWS_ASSUMED_ROLE_SESSION_EXPIRATION_TIME);
  
          // Mock the external calls.
          when(uploadDownloadService
              .extendUploadSingleCredentials(BDEF_NAMESPACE, BDEF_NAME, FORMAT_USAGE_CODE, FORMAT_FILE_TYPE_CODE, FORMAT_VERSION, PARTITION_VALUE, DATA_VERSION))
              .thenReturn(response);
  
          // Call the method under test.
          UploadSingleCredentialExtensionResponse result = uploadDownloadRestController
              .extendUploadSingleCredentials(BDEF_NAMESPACE, BDEF_NAME, FORMAT_USAGE_CODE, FORMAT_FILE_TYPE_CODE, FORMAT_VERSION, PARTITION_VALUE, DATA_VERSION);
  
          // Verify the external calls.
          verify(uploadDownloadService)
              .extendUploadSingleCredentials(BDEF_NAMESPACE, BDEF_NAME, FORMAT_USAGE_CODE, FORMAT_FILE_TYPE_CODE, FORMAT_VERSION, PARTITION_VALUE, DATA_VERSION);
          verifyNoMoreInteractionsHelper();
  
          // Validate the results.
          assertEquals(response, result);
      }
test_case.class_method_signature: UploadDownloadRestControllerTest.testExtendUploadSingleCredentials()
test_case.full_signature: @Test public void testExtendUploadSingleCredentials()
test_case.identifier: testExtendUploadSingleCredentials
test_case.invocations: thenReturn when extendUploadSingleCredentials extendUploadSingleCredentials extendUploadSingleCredentials verify verifyNoMoreInteractionsHelper assertEquals
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testExtendUploadSingleCredentials()
focal_class.declarator: businessObjectDataHelper
focal_class.modifier: @Autowired
      private
focal_class.original_string: @Autowired
      private BusinessObjectDataHelper businessObjectDataHelper;
focal_class.type: BusinessObjectDataHelper
focal_class.var_name: businessObjectDataHelper
focal_class.declarator: notificationEventService
focal_class.modifier: @Autowired
      private
focal_class.original_string: @Autowired
      private NotificationEventService notificationEventService;
focal_class.type: NotificationEventService
focal_class.var_name: notificationEventService
focal_class.declarator: uploadDownloadService
focal_class.modifier: @Autowired
      private
focal_class.original_string: @Autowired
      private UploadDownloadService uploadDownloadService;
focal_class.type: UploadDownloadService
focal_class.var_name: uploadDownloadService
focal_class.file: herd-code/herd-rest/src/main/java/org/finra/herd/rest/UploadDownloadRestController.java
focal_class.identifier: UploadDownloadRestController
focal_class.class_method_signature: UploadDownloadRestController.initiateUploadSingle(@RequestBody UploadSingleInitiationRequest uploadSingleInitiationRequest)
focal_class.full_signature: @RequestMapping(value = "/upload/single/initiation", method = RequestMethod.POST, consumes = {"application/xml", "application/json"}) @Secured(SecurityFunctions.FN_UPLOAD_POST) public UploadSingleInitiationResponse initiateUploadSingle(@RequestBody UploadSingleInitiationRequest uploadSingleInitiationRequest)
focal_class.identifier: initiateUploadSingle
focal_class.modifiers: @RequestMapping(value = "/upload/single/initiation", method = RequestMethod.POST, consumes = {"application/xml", "application/json"}) @Secured(SecurityFunctions.FN_UPLOAD_POST) public
focal_class.parameters: (@RequestBody UploadSingleInitiationRequest uploadSingleInitiationRequest)
focal_class.return: UploadSingleInitiationResponse
focal_class.signature: UploadSingleInitiationResponse initiateUploadSingle(@RequestBody UploadSingleInitiationRequest uploadSingleInitiationRequest)
focal_class.class_method_signature: UploadDownloadRestController.initiateDownloadSingle(@PathVariable("namespace") String namespace,
          @PathVariable("businessObjectDefinitionName") String businessObjectDefinitionName,
          @PathVariable("businessObjectFormatUsage") String businessObjectFormatUsage,
          @PathVariable("businessObjectFormatFileType") String businessObjectFormatFileType,
          @PathVariable("businessObjectFormatVersion") Integer businessObjectFormatVersion, @PathVariable("partitionValue") String partitionValue,
          @PathVariable("businessObjectDataVersion") Integer businessObjectDataVersion)
focal_class.full_signature: @RequestMapping(value = "/download/single/initiation/namespaces/{namespace}/businessObjectDefinitionNames/{businessObjectDefinitionName}" + "/businessObjectFormatUsages/{businessObjectFormatUsage}/businessObjectFormatFileTypes/{businessObjectFormatFileType}" + "/businessObjectFormatVersions/{businessObjectFormatVersion}/partitionValues/{partitionValue}" + "/businessObjectDataVersions/{businessObjectDataVersion}", method = RequestMethod.GET) @Secured(SecurityFunctions.FN_DOWNLOAD_GET) public DownloadSingleInitiationResponse initiateDownloadSingle(@PathVariable("namespace") String namespace,
          @PathVariable("businessObjectDefinitionName") String businessObjectDefinitionName,
          @PathVariable("businessObjectFormatUsage") String businessObjectFormatUsage,
          @PathVariable("businessObjectFormatFileType") String businessObjectFormatFileType,
          @PathVariable("businessObjectFormatVersion") Integer businessObjectFormatVersion, @PathVariable("partitionValue") String partitionValue,
          @PathVariable("businessObjectDataVersion") Integer businessObjectDataVersion)
focal_class.identifier: initiateDownloadSingle
focal_class.modifiers: @RequestMapping(value = "/download/single/initiation/namespaces/{namespace}/businessObjectDefinitionNames/{businessObjectDefinitionName}" + "/businessObjectFormatUsages/{businessObjectFormatUsage}/businessObjectFormatFileTypes/{businessObjectFormatFileType}" + "/businessObjectFormatVersions/{businessObjectFormatVersion}/partitionValues/{partitionValue}" + "/businessObjectDataVersions/{businessObjectDataVersion}", method = RequestMethod.GET) @Secured(SecurityFunctions.FN_DOWNLOAD_GET) public
focal_class.parameters: (@PathVariable("namespace") String namespace,
          @PathVariable("businessObjectDefinitionName") String businessObjectDefinitionName,
          @PathVariable("businessObjectFormatUsage") String businessObjectFormatUsage,
          @PathVariable("businessObjectFormatFileType") String businessObjectFormatFileType,
          @PathVariable("businessObjectFormatVersion") Integer businessObjectFormatVersion, @PathVariable("partitionValue") String partitionValue,
          @PathVariable("businessObjectDataVersion") Integer businessObjectDataVersion)
focal_class.return: DownloadSingleInitiationResponse
focal_class.signature: DownloadSingleInitiationResponse initiateDownloadSingle(@PathVariable("namespace") String namespace,
          @PathVariable("businessObjectDefinitionName") String businessObjectDefinitionName,
          @PathVariable("businessObjectFormatUsage") String businessObjectFormatUsage,
          @PathVariable("businessObjectFormatFileType") String businessObjectFormatFileType,
          @PathVariable("businessObjectFormatVersion") Integer businessObjectFormatVersion, @PathVariable("partitionValue") String partitionValue,
          @PathVariable("businessObjectDataVersion") Integer businessObjectDataVersion)
focal_class.class_method_signature: UploadDownloadRestController.extendUploadSingleCredentials(@PathVariable("namespace") String namespace,
          @PathVariable("businessObjectDefinitionName") String businessObjectDefinitionName,
          @PathVariable("businessObjectFormatUsage") String businessObjectFormatUsage,
          @PathVariable("businessObjectFormatFileType") String businessObjectFormatFileType,
          @PathVariable("businessObjectFormatVersion") Integer businessObjectFormatVersion, @PathVariable("partitionValue") String partitionValue,
          @PathVariable("businessObjectDataVersion") Integer businessObjectDataVersion)
focal_class.full_signature: @RequestMapping(value = "/upload/single/credential/extension/namespaces/{namespace}/businessObjectDefinitionNames/{businessObjectDefinitionName}" + "/businessObjectFormatUsages/{businessObjectFormatUsage}/businessObjectFormatFileTypes/{businessObjectFormatFileType}" + "/businessObjectFormatVersions/{businessObjectFormatVersion}/partitionValues/{partitionValue}" + "/businessObjectDataVersions/{businessObjectDataVersion}", method = RequestMethod.GET) @Secured(SecurityFunctions.FN_UPLOAD_EXTEND_CREDENTIALS_GET) public UploadSingleCredentialExtensionResponse extendUploadSingleCredentials(@PathVariable("namespace") String namespace,
          @PathVariable("businessObjectDefinitionName") String businessObjectDefinitionName,
          @PathVariable("businessObjectFormatUsage") String businessObjectFormatUsage,
          @PathVariable("businessObjectFormatFileType") String businessObjectFormatFileType,
          @PathVariable("businessObjectFormatVersion") Integer businessObjectFormatVersion, @PathVariable("partitionValue") String partitionValue,
          @PathVariable("businessObjectDataVersion") Integer businessObjectDataVersion)
focal_class.identifier: extendUploadSingleCredentials
focal_class.modifiers: @RequestMapping(value = "/upload/single/credential/extension/namespaces/{namespace}/businessObjectDefinitionNames/{businessObjectDefinitionName}" + "/businessObjectFormatUsages/{businessObjectFormatUsage}/businessObjectFormatFileTypes/{businessObjectFormatFileType}" + "/businessObjectFormatVersions/{businessObjectFormatVersion}/partitionValues/{partitionValue}" + "/businessObjectDataVersions/{businessObjectDataVersion}", method = RequestMethod.GET) @Secured(SecurityFunctions.FN_UPLOAD_EXTEND_CREDENTIALS_GET) public
focal_class.parameters: (@PathVariable("namespace") String namespace,
          @PathVariable("businessObjectDefinitionName") String businessObjectDefinitionName,
          @PathVariable("businessObjectFormatUsage") String businessObjectFormatUsage,
          @PathVariable("businessObjectFormatFileType") String businessObjectFormatFileType,
          @PathVariable("businessObjectFormatVersion") Integer businessObjectFormatVersion, @PathVariable("partitionValue") String partitionValue,
          @PathVariable("businessObjectDataVersion") Integer businessObjectDataVersion)
focal_class.return: UploadSingleCredentialExtensionResponse
focal_class.signature: UploadSingleCredentialExtensionResponse extendUploadSingleCredentials(@PathVariable("namespace") String namespace,
          @PathVariable("businessObjectDefinitionName") String businessObjectDefinitionName,
          @PathVariable("businessObjectFormatUsage") String businessObjectFormatUsage,
          @PathVariable("businessObjectFormatFileType") String businessObjectFormatFileType,
          @PathVariable("businessObjectFormatVersion") Integer businessObjectFormatVersion, @PathVariable("partitionValue") String partitionValue,
          @PathVariable("businessObjectDataVersion") Integer businessObjectDataVersion)
focal_class.class_method_signature: UploadDownloadRestController.initiateDownloadSingleSampleFile(
          @RequestBody DownloadBusinessObjectDefinitionSampleDataFileSingleInitiationRequest downloadBusinesObjectDefinitionSingleInitiationRequest)
focal_class.full_signature: @RequestMapping(value = "/download/businessObjectDefinitionSampleDataFile/single/initiation", method = RequestMethod.POST, consumes = {"application/xml", "application/json"}) @Secured(SecurityFunctions.FN_DOWNLOAD_BUSINESS_OBJECT_DEFINITION_SAMPLE_DATA_FILE_POST) public DownloadBusinessObjectDefinitionSampleDataFileSingleInitiationResponse initiateDownloadSingleSampleFile(
          @RequestBody DownloadBusinessObjectDefinitionSampleDataFileSingleInitiationRequest downloadBusinesObjectDefinitionSingleInitiationRequest)
focal_class.identifier: initiateDownloadSingleSampleFile
focal_class.modifiers: @RequestMapping(value = "/download/businessObjectDefinitionSampleDataFile/single/initiation", method = RequestMethod.POST, consumes = {"application/xml", "application/json"}) @Secured(SecurityFunctions.FN_DOWNLOAD_BUSINESS_OBJECT_DEFINITION_SAMPLE_DATA_FILE_POST) public
focal_class.parameters: (
          @RequestBody DownloadBusinessObjectDefinitionSampleDataFileSingleInitiationRequest downloadBusinesObjectDefinitionSingleInitiationRequest)
focal_class.return: DownloadBusinessObjectDefinitionSampleDataFileSingleInitiationResponse
focal_class.signature: DownloadBusinessObjectDefinitionSampleDataFileSingleInitiationResponse initiateDownloadSingleSampleFile(
          @RequestBody DownloadBusinessObjectDefinitionSampleDataFileSingleInitiationRequest downloadBusinesObjectDefinitionSingleInitiationRequest)
focal_class.class_method_signature: UploadDownloadRestController.initiateUploadSampleFile(
          @RequestBody UploadBusinessObjectDefinitionSampleDataFileInitiationRequest uploadBusinessObjectDefinitionSampleDataFileInitiationRequest)
focal_class.full_signature: @RequestMapping(value = "/upload/businessObjectDefinitionSampleDataFile/initiation", method = RequestMethod.POST, consumes = {"application/xml", "application/json"}) @Secured(SecurityFunctions.FN_UPLOAD_BUSINESS_OBJECT_DEFINITION_SAMPLE_DATA_FILE_POST) public UploadBusinessObjectDefinitionSampleDataFileInitiationResponse initiateUploadSampleFile(
          @RequestBody UploadBusinessObjectDefinitionSampleDataFileInitiationRequest uploadBusinessObjectDefinitionSampleDataFileInitiationRequest)
focal_class.identifier: initiateUploadSampleFile
focal_class.modifiers: @RequestMapping(value = "/upload/businessObjectDefinitionSampleDataFile/initiation", method = RequestMethod.POST, consumes = {"application/xml", "application/json"}) @Secured(SecurityFunctions.FN_UPLOAD_BUSINESS_OBJECT_DEFINITION_SAMPLE_DATA_FILE_POST) public
focal_class.parameters: (
          @RequestBody UploadBusinessObjectDefinitionSampleDataFileInitiationRequest uploadBusinessObjectDefinitionSampleDataFileInitiationRequest)
focal_class.return: UploadBusinessObjectDefinitionSampleDataFileInitiationResponse
focal_class.signature: UploadBusinessObjectDefinitionSampleDataFileInitiationResponse initiateUploadSampleFile(
          @RequestBody UploadBusinessObjectDefinitionSampleDataFileInitiationRequest uploadBusinessObjectDefinitionSampleDataFileInitiationRequest)
focal_class.class_method_signature: UploadDownloadRestController.initiateDownloadSingleBusinessObjectDataStorageFile(
          @RequestBody DownloadBusinessObjectDataStorageFileSingleInitiationRequest downloadBusinessObjectDataStorageFileSingleInitiationRequest)
focal_class.full_signature: @RequestMapping(value = "/download/businessObjectDataStorageFile/single/initiation", method = RequestMethod.POST, consumes = {"application/xml", "application/json"}) @Secured(SecurityFunctions.FN_DOWNLOAD_BUSINESS_OBJECT_DATA_STORAGE_FILE_POST) public DownloadBusinessObjectDataStorageFileSingleInitiationResponse initiateDownloadSingleBusinessObjectDataStorageFile(
          @RequestBody DownloadBusinessObjectDataStorageFileSingleInitiationRequest downloadBusinessObjectDataStorageFileSingleInitiationRequest)
focal_class.identifier: initiateDownloadSingleBusinessObjectDataStorageFile
focal_class.modifiers: @RequestMapping(value = "/download/businessObjectDataStorageFile/single/initiation", method = RequestMethod.POST, consumes = {"application/xml", "application/json"}) @Secured(SecurityFunctions.FN_DOWNLOAD_BUSINESS_OBJECT_DATA_STORAGE_FILE_POST) public
focal_class.parameters: (
          @RequestBody DownloadBusinessObjectDataStorageFileSingleInitiationRequest downloadBusinessObjectDataStorageFileSingleInitiationRequest)
focal_class.return: DownloadBusinessObjectDataStorageFileSingleInitiationResponse
focal_class.signature: DownloadBusinessObjectDataStorageFileSingleInitiationResponse initiateDownloadSingleBusinessObjectDataStorageFile(
          @RequestBody DownloadBusinessObjectDataStorageFileSingleInitiationRequest downloadBusinessObjectDataStorageFileSingleInitiationRequest)
focal_class.superclass: extends HerdBaseController
focal_method.body: @RequestMapping(value = "/upload/single/credential/extension/namespaces/{namespace}/businessObjectDefinitionNames/{businessObjectDefinitionName}" +
          "/businessObjectFormatUsages/{businessObjectFormatUsage}/businessObjectFormatFileTypes/{businessObjectFormatFileType}" +
          "/businessObjectFormatVersions/{businessObjectFormatVersion}/partitionValues/{partitionValue}" +
          "/businessObjectDataVersions/{businessObjectDataVersion}", method = RequestMethod.GET)
      @Secured(SecurityFunctions.FN_UPLOAD_EXTEND_CREDENTIALS_GET)
      public UploadSingleCredentialExtensionResponse extendUploadSingleCredentials(@PathVariable("namespace") String namespace,
          @PathVariable("businessObjectDefinitionName") String businessObjectDefinitionName,
          @PathVariable("businessObjectFormatUsage") String businessObjectFormatUsage,
          @PathVariable("businessObjectFormatFileType") String businessObjectFormatFileType,
          @PathVariable("businessObjectFormatVersion") Integer businessObjectFormatVersion, @PathVariable("partitionValue") String partitionValue,
          @PathVariable("businessObjectDataVersion") Integer businessObjectDataVersion)
      {
          return uploadDownloadService
              .extendUploadSingleCredentials(namespace, businessObjectDefinitionName, businessObjectFormatUsage, businessObjectFormatFileType,
                  businessObjectFormatVersion, partitionValue, businessObjectDataVersion);
      }
focal_method.class_method_signature: UploadDownloadRestController.extendUploadSingleCredentials(@PathVariable("namespace") String namespace,
          @PathVariable("businessObjectDefinitionName") String businessObjectDefinitionName,
          @PathVariable("businessObjectFormatUsage") String businessObjectFormatUsage,
          @PathVariable("businessObjectFormatFileType") String businessObjectFormatFileType,
          @PathVariable("businessObjectFormatVersion") Integer businessObjectFormatVersion, @PathVariable("partitionValue") String partitionValue,
          @PathVariable("businessObjectDataVersion") Integer businessObjectDataVersion)
focal_method.full_signature: @RequestMapping(value = "/upload/single/credential/extension/namespaces/{namespace}/businessObjectDefinitionNames/{businessObjectDefinitionName}" + "/businessObjectFormatUsages/{businessObjectFormatUsage}/businessObjectFormatFileTypes/{businessObjectFormatFileType}" + "/businessObjectFormatVersions/{businessObjectFormatVersion}/partitionValues/{partitionValue}" + "/businessObjectDataVersions/{businessObjectDataVersion}", method = RequestMethod.GET) @Secured(SecurityFunctions.FN_UPLOAD_EXTEND_CREDENTIALS_GET) public UploadSingleCredentialExtensionResponse extendUploadSingleCredentials(@PathVariable("namespace") String namespace,
          @PathVariable("businessObjectDefinitionName") String businessObjectDefinitionName,
          @PathVariable("businessObjectFormatUsage") String businessObjectFormatUsage,
          @PathVariable("businessObjectFormatFileType") String businessObjectFormatFileType,
          @PathVariable("businessObjectFormatVersion") Integer businessObjectFormatVersion, @PathVariable("partitionValue") String partitionValue,
          @PathVariable("businessObjectDataVersion") Integer businessObjectDataVersion)
focal_method.identifier: extendUploadSingleCredentials
focal_method.invocations: extendUploadSingleCredentials
focal_method.modifiers: @RequestMapping(value = "/upload/single/credential/extension/namespaces/{namespace}/businessObjectDefinitionNames/{businessObjectDefinitionName}" + "/businessObjectFormatUsages/{businessObjectFormatUsage}/businessObjectFormatFileTypes/{businessObjectFormatFileType}" + "/businessObjectFormatVersions/{businessObjectFormatVersion}/partitionValues/{partitionValue}" + "/businessObjectDataVersions/{businessObjectDataVersion}", method = RequestMethod.GET) @Secured(SecurityFunctions.FN_UPLOAD_EXTEND_CREDENTIALS_GET) public
focal_method.parameters: (@PathVariable("namespace") String namespace,
          @PathVariable("businessObjectDefinitionName") String businessObjectDefinitionName,
          @PathVariable("businessObjectFormatUsage") String businessObjectFormatUsage,
          @PathVariable("businessObjectFormatFileType") String businessObjectFormatFileType,
          @PathVariable("businessObjectFormatVersion") Integer businessObjectFormatVersion, @PathVariable("partitionValue") String partitionValue,
          @PathVariable("businessObjectDataVersion") Integer businessObjectDataVersion)
focal_method.return: UploadSingleCredentialExtensionResponse
focal_method.signature: UploadSingleCredentialExtensionResponse extendUploadSingleCredentials(@PathVariable("namespace") String namespace,
          @PathVariable("businessObjectDefinitionName") String businessObjectDefinitionName,
          @PathVariable("businessObjectFormatUsage") String businessObjectFormatUsage,
          @PathVariable("businessObjectFormatFileType") String businessObjectFormatFileType,
          @PathVariable("businessObjectFormatVersion") Integer businessObjectFormatVersion, @PathVariable("partitionValue") String partitionValue,
          @PathVariable("businessObjectDataVersion") Integer businessObjectDataVersion)