test_class.declarator: searchIndexActivationRestController
test_class.modifier: @InjectMocks
      private
test_class.original_string: @InjectMocks
      private SearchIndexActivationRestController searchIndexActivationRestController;
test_class.type: SearchIndexActivationRestController
test_class.var_name: searchIndexActivationRestController
test_class.declarator: searchIndexActivationService
test_class.modifier: @Mock
      private
test_class.original_string: @Mock
      private SearchIndexActivationService searchIndexActivationService;
test_class.type: SearchIndexActivationService
test_class.var_name: searchIndexActivationService
test_class.file: herd-code/herd-rest/src/test/java/org/finra/herd/rest/SearchIndexActivationRestControllerTest.java
test_class.identifier: SearchIndexActivationRestControllerTest
test_class.superclass: extends AbstractRestTest
test_case.body: @Test
      public void testCreateSearchIndexActivation()
      {
          // Create a search index activation create request.
          SearchIndexActivationCreateRequest searchIndexActivationCreateRequest = new SearchIndexActivationCreateRequest(new SearchIndexKey(SEARCH_INDEX_NAME));
  
          // Create a search index activation response.
          SearchIndexActivation searchIndexActivation =
              new SearchIndexActivation(new SearchIndexKey(SEARCH_INDEX_NAME), SEARCH_INDEX_TYPE, SEARCH_INDEX_STATUS, SEARCH_INDEX_ACTIVE_FLAG, CREATED_BY,
                  CREATED_ON, UPDATED_ON);
  
          // Mock the call to the search index activation service.
          when(searchIndexActivationService.createSearchIndexActivation(searchIndexActivationCreateRequest)).thenReturn(searchIndexActivation);
  
          // Create a search index activation.
          SearchIndexActivation response = searchIndexActivationRestController.createSearchIndexActivation(searchIndexActivationCreateRequest);
  
          // Verify the calls.
          verify(searchIndexActivationService, times(1)).createSearchIndexActivation(searchIndexActivationCreateRequest);
  
          // Validate the returned object.
          assertEquals(searchIndexActivation, response);
      }
test_case.class_method_signature: SearchIndexActivationRestControllerTest.testCreateSearchIndexActivation()
test_case.full_signature: @Test public void testCreateSearchIndexActivation()
test_case.identifier: testCreateSearchIndexActivation
test_case.invocations: thenReturn when createSearchIndexActivation createSearchIndexActivation createSearchIndexActivation verify times assertEquals
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testCreateSearchIndexActivation()
focal_class.declarator: SEARCH_INDEX_ACTIVATION_URI_PREFIX = "/searchIndexActivations"
focal_class.modifier: public static final
focal_class.original_string: public static final String SEARCH_INDEX_ACTIVATION_URI_PREFIX = "/searchIndexActivations";
focal_class.type: String
focal_class.var_name: SEARCH_INDEX_ACTIVATION_URI_PREFIX
focal_class.declarator: searchIndexActivationService
focal_class.modifier: @Autowired
      private
focal_class.original_string: @Autowired
      private SearchIndexActivationService searchIndexActivationService;
focal_class.type: SearchIndexActivationService
focal_class.var_name: searchIndexActivationService
focal_class.file: herd-code/herd-rest/src/main/java/org/finra/herd/rest/SearchIndexActivationRestController.java
focal_class.identifier: SearchIndexActivationRestController
focal_class.class_method_signature: SearchIndexActivationRestController.createSearchIndexActivation(@RequestBody SearchIndexActivationCreateRequest request)
focal_class.full_signature: @RequestMapping(value = SEARCH_INDEX_ACTIVATION_URI_PREFIX, method = RequestMethod.POST, consumes = {"application/xml", "application/json"}) @Secured(SecurityFunctions.FN_SEARCH_INDEXES_ACTIVATION_POST) public SearchIndexActivation createSearchIndexActivation(@RequestBody SearchIndexActivationCreateRequest request)
focal_class.identifier: createSearchIndexActivation
focal_class.modifiers: @RequestMapping(value = SEARCH_INDEX_ACTIVATION_URI_PREFIX, method = RequestMethod.POST, consumes = {"application/xml", "application/json"}) @Secured(SecurityFunctions.FN_SEARCH_INDEXES_ACTIVATION_POST) public
focal_class.parameters: (@RequestBody SearchIndexActivationCreateRequest request)
focal_class.return: SearchIndexActivation
focal_class.signature: SearchIndexActivation createSearchIndexActivation(@RequestBody SearchIndexActivationCreateRequest request)
focal_class.superclass: extends HerdBaseController
focal_method.body: @RequestMapping(value = SEARCH_INDEX_ACTIVATION_URI_PREFIX, method = RequestMethod.POST, consumes = {"application/xml", "application/json"})
      @Secured(SecurityFunctions.FN_SEARCH_INDEXES_ACTIVATION_POST)
      public SearchIndexActivation createSearchIndexActivation(@RequestBody SearchIndexActivationCreateRequest request)
      {
          return searchIndexActivationService.createSearchIndexActivation(request);
      }
focal_method.class_method_signature: SearchIndexActivationRestController.createSearchIndexActivation(@RequestBody SearchIndexActivationCreateRequest request)
focal_method.full_signature: @RequestMapping(value = SEARCH_INDEX_ACTIVATION_URI_PREFIX, method = RequestMethod.POST, consumes = {"application/xml", "application/json"}) @Secured(SecurityFunctions.FN_SEARCH_INDEXES_ACTIVATION_POST) public SearchIndexActivation createSearchIndexActivation(@RequestBody SearchIndexActivationCreateRequest request)
focal_method.identifier: createSearchIndexActivation
focal_method.invocations: createSearchIndexActivation
focal_method.modifiers: @RequestMapping(value = SEARCH_INDEX_ACTIVATION_URI_PREFIX, method = RequestMethod.POST, consumes = {"application/xml", "application/json"}) @Secured(SecurityFunctions.FN_SEARCH_INDEXES_ACTIVATION_POST) public
focal_method.parameters: (@RequestBody SearchIndexActivationCreateRequest request)
focal_method.return: SearchIndexActivation
focal_method.signature: SearchIndexActivation createSearchIndexActivation(@RequestBody SearchIndexActivationCreateRequest request)