test_class.declarator: businessObjectDataStorageUnitRestController
test_class.modifier: @InjectMocks
      private
test_class.original_string: @InjectMocks
      private BusinessObjectDataStorageUnitRestController businessObjectDataStorageUnitRestController;
test_class.type: BusinessObjectDataStorageUnitRestController
test_class.var_name: businessObjectDataStorageUnitRestController
test_class.declarator: businessObjectDataStorageUnitService
test_class.modifier: @Mock
      private
test_class.original_string: @Mock
      private BusinessObjectDataStorageUnitService businessObjectDataStorageUnitService;
test_class.type: BusinessObjectDataStorageUnitService
test_class.var_name: businessObjectDataStorageUnitService
test_class.file: herd-code/herd-rest/src/test/java/org/finra/herd/rest/BusinessObjectDataStorageUnitRestControllerTest.java
test_class.identifier: BusinessObjectDataStorageUnitRestControllerTest
test_class.superclass: extends AbstractRestTest
test_case.body: @Test
      public void testCreateBusinessObjectDataStorageUnit()
      {
          // Create a business object data storage unit key.
          BusinessObjectDataStorageUnitKey businessObjectDataStorageUnitKey =
              new BusinessObjectDataStorageUnitKey(BDEF_NAMESPACE, BDEF_NAME, FORMAT_USAGE_CODE, FORMAT_FILE_TYPE_CODE, FORMAT_VERSION, PARTITION_VALUE,
                  SUBPARTITION_VALUES, DATA_VERSION, STORAGE_NAME);
  
          // Create a storage unit directory.
          StorageDirectory storageDirectory = new StorageDirectory(STORAGE_DIRECTORY_PATH);
  
          // Create a list of storage files.
          List<StorageFile> storageFiles = Collections.singletonList(new StorageFile(FILE_NAME, FILE_SIZE, ROW_COUNT));
  
          // Create a business object data storage unit request.
          BusinessObjectDataStorageUnitCreateRequest request =
              new BusinessObjectDataStorageUnitCreateRequest(businessObjectDataStorageUnitKey, storageDirectory, storageFiles, DISCOVER_STORAGE_FILES);
  
          // Create a business object data storage unit response.
          BusinessObjectDataStorageUnitCreateResponse response =
              new BusinessObjectDataStorageUnitCreateResponse(businessObjectDataStorageUnitKey, storageDirectory, storageFiles);
  
          // Mock the external calls.
          when(businessObjectDataStorageUnitService.createBusinessObjectDataStorageUnit(request)).thenReturn(response);
  
          // Call the method under test.
          BusinessObjectDataStorageUnitCreateResponse result = businessObjectDataStorageUnitRestController.createBusinessObjectDataStorageUnit(request);
  
          // Verify the external calls.
          verify(businessObjectDataStorageUnitService).createBusinessObjectDataStorageUnit(request);
          verifyNoMoreInteractions(businessObjectDataStorageUnitService);
  
          // Validate the results.
          assertEquals(response, result);
      }
test_case.class_method_signature: BusinessObjectDataStorageUnitRestControllerTest.testCreateBusinessObjectDataStorageUnit()
test_case.full_signature: @Test public void testCreateBusinessObjectDataStorageUnit()
test_case.identifier: testCreateBusinessObjectDataStorageUnit
test_case.invocations: singletonList thenReturn when createBusinessObjectDataStorageUnit createBusinessObjectDataStorageUnit createBusinessObjectDataStorageUnit verify verifyNoMoreInteractions assertEquals
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testCreateBusinessObjectDataStorageUnit()
focal_class.declarator: businessObjectDataStorageUnitService
focal_class.modifier: @Autowired
      private
focal_class.original_string: @Autowired
      private BusinessObjectDataStorageUnitService businessObjectDataStorageUnitService;
focal_class.type: BusinessObjectDataStorageUnitService
focal_class.var_name: businessObjectDataStorageUnitService
focal_class.file: herd-code/herd-rest/src/main/java/org/finra/herd/rest/BusinessObjectDataStorageUnitRestController.java
focal_class.identifier: BusinessObjectDataStorageUnitRestController
focal_class.class_method_signature: BusinessObjectDataStorageUnitRestController.createBusinessObjectDataStorageUnit(@RequestBody BusinessObjectDataStorageUnitCreateRequest request)
focal_class.full_signature: @RequestMapping(value = "/businessObjectDataStorageUnits", method = RequestMethod.POST, consumes = {"application/xml", "application/json"}) @Secured(SecurityFunctions.FN_BUSINESS_OBJECT_DATA_STORAGE_UNITS_POST) public BusinessObjectDataStorageUnitCreateResponse createBusinessObjectDataStorageUnit(@RequestBody BusinessObjectDataStorageUnitCreateRequest request)
focal_class.identifier: createBusinessObjectDataStorageUnit
focal_class.modifiers: @RequestMapping(value = "/businessObjectDataStorageUnits", method = RequestMethod.POST, consumes = {"application/xml", "application/json"}) @Secured(SecurityFunctions.FN_BUSINESS_OBJECT_DATA_STORAGE_UNITS_POST) public
focal_class.parameters: (@RequestBody BusinessObjectDataStorageUnitCreateRequest request)
focal_class.return: BusinessObjectDataStorageUnitCreateResponse
focal_class.signature: BusinessObjectDataStorageUnitCreateResponse createBusinessObjectDataStorageUnit(@RequestBody BusinessObjectDataStorageUnitCreateRequest request)
focal_class.superclass: extends HerdBaseController
focal_method.body: @RequestMapping(value = "/businessObjectDataStorageUnits", method = RequestMethod.POST, consumes = {"application/xml", "application/json"})
      @Secured(SecurityFunctions.FN_BUSINESS_OBJECT_DATA_STORAGE_UNITS_POST)
      public BusinessObjectDataStorageUnitCreateResponse createBusinessObjectDataStorageUnit(@RequestBody BusinessObjectDataStorageUnitCreateRequest request)
      {
          return businessObjectDataStorageUnitService.createBusinessObjectDataStorageUnit(request);
      }
focal_method.class_method_signature: BusinessObjectDataStorageUnitRestController.createBusinessObjectDataStorageUnit(@RequestBody BusinessObjectDataStorageUnitCreateRequest request)
focal_method.full_signature: @RequestMapping(value = "/businessObjectDataStorageUnits", method = RequestMethod.POST, consumes = {"application/xml", "application/json"}) @Secured(SecurityFunctions.FN_BUSINESS_OBJECT_DATA_STORAGE_UNITS_POST) public BusinessObjectDataStorageUnitCreateResponse createBusinessObjectDataStorageUnit(@RequestBody BusinessObjectDataStorageUnitCreateRequest request)
focal_method.identifier: createBusinessObjectDataStorageUnit
focal_method.invocations: createBusinessObjectDataStorageUnit
focal_method.modifiers: @RequestMapping(value = "/businessObjectDataStorageUnits", method = RequestMethod.POST, consumes = {"application/xml", "application/json"}) @Secured(SecurityFunctions.FN_BUSINESS_OBJECT_DATA_STORAGE_UNITS_POST) public
focal_method.parameters: (@RequestBody BusinessObjectDataStorageUnitCreateRequest request)
focal_method.return: BusinessObjectDataStorageUnitCreateResponse
focal_method.signature: BusinessObjectDataStorageUnitCreateResponse createBusinessObjectDataStorageUnit(@RequestBody BusinessObjectDataStorageUnitCreateRequest request)