test_class.declarator: relationalTableRegistrationRestController
test_class.modifier: @InjectMocks
      private
test_class.original_string: @InjectMocks
      private RelationalTableRegistrationRestController relationalTableRegistrationRestController;
test_class.type: RelationalTableRegistrationRestController
test_class.var_name: relationalTableRegistrationRestController
test_class.declarator: relationalTableRegistrationService
test_class.modifier: @Mock
      private
test_class.original_string: @Mock
      private RelationalTableRegistrationService relationalTableRegistrationService;
test_class.type: RelationalTableRegistrationService
test_class.var_name: relationalTableRegistrationService
test_class.file: herd-code/herd-rest/src/test/java/org/finra/herd/rest/RelationalTableRegistrationRestControllerTest.java
test_class.identifier: RelationalTableRegistrationRestControllerTest
test_class.superclass: extends AbstractRestTest
test_case.body: @Test
      public void testRelationalTableRegistrationRestControllerWithAppendToExistingBusinessObjectDefinitionRequestParameterSetToTrue()
      {
          RelationalTableRegistrationCreateRequest createRequest = new RelationalTableRegistrationCreateRequest();
          createRequest.setNamespace(BDEF_NAMESPACE);
          createRequest.setDataProviderName(DATA_PROVIDER_NAME);
          createRequest.setBusinessObjectDefinitionName(BDEF_NAME);
          createRequest.setBusinessObjectFormatUsage(FORMAT_USAGE_CODE);
          createRequest.setRelationalTableName(RELATIONAL_TABLE_NAME);
          createRequest.setStorageName(STORAGE_NAME);
  
          BusinessObjectData businessObjectData = new BusinessObjectData();
          businessObjectData.setId(businessObjectData.getId());
          businessObjectData.setNamespace(BDEF_NAMESPACE);
          businessObjectData.setBusinessObjectDefinitionName(BDEF_NAME);
          businessObjectData.setBusinessObjectFormatUsage(FORMAT_USAGE_CODE);
          businessObjectData.setVersion(0);
          businessObjectData.setStatus("VALID");
          businessObjectData.setLatestVersion(true);
          businessObjectData.setBusinessObjectFormatFileType(FileTypeEntity.RELATIONAL_TABLE_FILE_TYPE);
          businessObjectData.setPartitionValue(BusinessObjectDataServiceImpl.NO_PARTITIONING_PARTITION_VALUE);
          businessObjectData.setPartitionKey(BusinessObjectDataServiceImpl.NO_PARTITIONING_PARTITION_KEY);
  
  
          when(relationalTableRegistrationService.createRelationalTableRegistration(createRequest, APPEND_TO_EXISTING_BUSINESS_OBJECT_DEFINTION_TRUE))
              .thenReturn(businessObjectData);
  
          BusinessObjectData returnedBusinessObjectData =
              relationalTableRegistrationRestController.createRelationalTableRegistration(createRequest, APPEND_TO_EXISTING_BUSINESS_OBJECT_DEFINTION_TRUE);
  
          // Verify the external calls.
          verify(relationalTableRegistrationService).createRelationalTableRegistration(createRequest, APPEND_TO_EXISTING_BUSINESS_OBJECT_DEFINTION_TRUE);
          verifyNoMoreInteractions(relationalTableRegistrationService);
  
          // Validate the returned object.
          assertEquals(businessObjectData, returnedBusinessObjectData);
      }
test_case.class_method_signature: RelationalTableRegistrationRestControllerTest.testRelationalTableRegistrationRestControllerWithAppendToExistingBusinessObjectDefinitionRequestParameterSetToTrue()
test_case.full_signature: @Test public void testRelationalTableRegistrationRestControllerWithAppendToExistingBusinessObjectDefinitionRequestParameterSetToTrue()
test_case.identifier: testRelationalTableRegistrationRestControllerWithAppendToExistingBusinessObjectDefinitionRequestParameterSetToTrue
test_case.invocations: setNamespace setDataProviderName setBusinessObjectDefinitionName setBusinessObjectFormatUsage setRelationalTableName setStorageName setId getId setNamespace setBusinessObjectDefinitionName setBusinessObjectFormatUsage setVersion setStatus setLatestVersion setBusinessObjectFormatFileType setPartitionValue setPartitionKey thenReturn when createRelationalTableRegistration createRelationalTableRegistration createRelationalTableRegistration verify verifyNoMoreInteractions assertEquals
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testRelationalTableRegistrationRestControllerWithAppendToExistingBusinessObjectDefinitionRequestParameterSetToTrue()
focal_class.declarator: relationalTableRegistrationService
focal_class.modifier: @Autowired
      private
focal_class.original_string: @Autowired
      private RelationalTableRegistrationService relationalTableRegistrationService;
focal_class.type: RelationalTableRegistrationService
focal_class.var_name: relationalTableRegistrationService
focal_class.file: herd-code/herd-rest/src/main/java/org/finra/herd/rest/RelationalTableRegistrationRestController.java
focal_class.identifier: RelationalTableRegistrationRestController
focal_class.class_method_signature: RelationalTableRegistrationRestController.createRelationalTableRegistration(@RequestBody RelationalTableRegistrationCreateRequest relationalTableRegistrationCreateRequest,
          @RequestParam(value = "appendToExistingBusinessObjectDefinition", required = false, defaultValue = "false")
              Boolean appendToExistingBusinessObjectDefinition)
focal_class.full_signature: @RequestMapping(value = "/relationalTableRegistrations", method = RequestMethod.POST, consumes = {"application/xml", "application/json"}) @Secured(SecurityFunctions.FN_RELATIONAL_TABLE_REGISTRATIONS_POST) public BusinessObjectData createRelationalTableRegistration(@RequestBody RelationalTableRegistrationCreateRequest relationalTableRegistrationCreateRequest,
          @RequestParam(value = "appendToExistingBusinessObjectDefinition", required = false, defaultValue = "false")
              Boolean appendToExistingBusinessObjectDefinition)
focal_class.identifier: createRelationalTableRegistration
focal_class.modifiers: @RequestMapping(value = "/relationalTableRegistrations", method = RequestMethod.POST, consumes = {"application/xml", "application/json"}) @Secured(SecurityFunctions.FN_RELATIONAL_TABLE_REGISTRATIONS_POST) public
focal_class.parameters: (@RequestBody RelationalTableRegistrationCreateRequest relationalTableRegistrationCreateRequest,
          @RequestParam(value = "appendToExistingBusinessObjectDefinition", required = false, defaultValue = "false")
              Boolean appendToExistingBusinessObjectDefinition)
focal_class.return: BusinessObjectData
focal_class.signature: BusinessObjectData createRelationalTableRegistration(@RequestBody RelationalTableRegistrationCreateRequest relationalTableRegistrationCreateRequest,
          @RequestParam(value = "appendToExistingBusinessObjectDefinition", required = false, defaultValue = "false")
              Boolean appendToExistingBusinessObjectDefinition)
focal_class.superclass: extends HerdBaseController
focal_method.body: @RequestMapping(value = "/relationalTableRegistrations", method = RequestMethod.POST, consumes = {"application/xml", "application/json"})
      @Secured(SecurityFunctions.FN_RELATIONAL_TABLE_REGISTRATIONS_POST)
      public BusinessObjectData createRelationalTableRegistration(@RequestBody RelationalTableRegistrationCreateRequest relationalTableRegistrationCreateRequest,
          @RequestParam(value = "appendToExistingBusinessObjectDefinition", required = false, defaultValue = "false")
              Boolean appendToExistingBusinessObjectDefinition)
      {
          return relationalTableRegistrationService
              .createRelationalTableRegistration(relationalTableRegistrationCreateRequest, appendToExistingBusinessObjectDefinition);
      }
focal_method.class_method_signature: RelationalTableRegistrationRestController.createRelationalTableRegistration(@RequestBody RelationalTableRegistrationCreateRequest relationalTableRegistrationCreateRequest,
          @RequestParam(value = "appendToExistingBusinessObjectDefinition", required = false, defaultValue = "false")
              Boolean appendToExistingBusinessObjectDefinition)
focal_method.full_signature: @RequestMapping(value = "/relationalTableRegistrations", method = RequestMethod.POST, consumes = {"application/xml", "application/json"}) @Secured(SecurityFunctions.FN_RELATIONAL_TABLE_REGISTRATIONS_POST) public BusinessObjectData createRelationalTableRegistration(@RequestBody RelationalTableRegistrationCreateRequest relationalTableRegistrationCreateRequest,
          @RequestParam(value = "appendToExistingBusinessObjectDefinition", required = false, defaultValue = "false")
              Boolean appendToExistingBusinessObjectDefinition)
focal_method.identifier: createRelationalTableRegistration
focal_method.invocations: createRelationalTableRegistration
focal_method.modifiers: @RequestMapping(value = "/relationalTableRegistrations", method = RequestMethod.POST, consumes = {"application/xml", "application/json"}) @Secured(SecurityFunctions.FN_RELATIONAL_TABLE_REGISTRATIONS_POST) public
focal_method.parameters: (@RequestBody RelationalTableRegistrationCreateRequest relationalTableRegistrationCreateRequest,
          @RequestParam(value = "appendToExistingBusinessObjectDefinition", required = false, defaultValue = "false")
              Boolean appendToExistingBusinessObjectDefinition)
focal_method.return: BusinessObjectData
focal_method.signature: BusinessObjectData createRelationalTableRegistration(@RequestBody RelationalTableRegistrationCreateRequest relationalTableRegistrationCreateRequest,
          @RequestParam(value = "appendToExistingBusinessObjectDefinition", required = false, defaultValue = "false")
              Boolean appendToExistingBusinessObjectDefinition)