test_class.declarator: searchIndexValidationRestController
test_class.modifier: @InjectMocks
      private
test_class.original_string: @InjectMocks
      private SearchIndexValidationRestController searchIndexValidationRestController;
test_class.type: SearchIndexValidationRestController
test_class.var_name: searchIndexValidationRestController
test_class.declarator: searchIndexValidationService
test_class.modifier: @Mock
      private
test_class.original_string: @Mock
      private SearchIndexValidationService searchIndexValidationService;
test_class.type: SearchIndexValidationService
test_class.var_name: searchIndexValidationService
test_class.file: herd-code/herd-rest/src/test/java/org/finra/herd/rest/SearchIndexValidationRestControllerTest.java
test_class.identifier: SearchIndexValidationRestControllerTest
test_class.superclass: extends AbstractRestTest
test_case.body: @Test
      public void testCreateSearchIndexValidation()
      {
          // Create a search index validation create request.
          SearchIndexValidationCreateRequest searchIndexValidationCreateRequest =
              new SearchIndexValidationCreateRequest(new SearchIndexKey(SEARCH_INDEX_NAME), PERFORM_FULL_SEARCH_INDEX_VALIDATION);
  
          // Create a search index validation response.
          SearchIndexValidation searchIndexValidation =
              new SearchIndexValidation(new SearchIndexKey(SEARCH_INDEX_NAME), SEARCH_INDEX_STATISTICS_CREATION_DATE, false, false, false);
  
          // Mock the call to the search index validation service.
          when(searchIndexValidationService.createSearchIndexValidation(searchIndexValidationCreateRequest)).thenReturn(searchIndexValidation);
  
          // Create a search index validation.
          SearchIndexValidation response = searchIndexValidationRestController.createSearchIndexValidation(searchIndexValidationCreateRequest);
  
          // Verify the calls.
          verify(searchIndexValidationService, times(1)).createSearchIndexValidation(searchIndexValidationCreateRequest);
  
          response.setValidateStartTime(SEARCH_INDEX_STATISTICS_CREATION_DATE);
          // Validate the returned object.
          assertEquals(searchIndexValidation, response);
      }
test_case.class_method_signature: SearchIndexValidationRestControllerTest.testCreateSearchIndexValidation()
test_case.full_signature: @Test public void testCreateSearchIndexValidation()
test_case.identifier: testCreateSearchIndexValidation
test_case.invocations: thenReturn when createSearchIndexValidation createSearchIndexValidation createSearchIndexValidation verify times setValidateStartTime assertEquals
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testCreateSearchIndexValidation()
focal_class.declarator: SEARCH_INDEX_VALIDATION_URI_PREFIX = "/searchIndexValidations"
focal_class.modifier: public static final
focal_class.original_string: public static final String SEARCH_INDEX_VALIDATION_URI_PREFIX = "/searchIndexValidations";
focal_class.type: String
focal_class.var_name: SEARCH_INDEX_VALIDATION_URI_PREFIX
focal_class.declarator: searchIndexValidationService
focal_class.modifier: @Autowired
      private
focal_class.original_string: @Autowired
      private SearchIndexValidationService searchIndexValidationService;
focal_class.type: SearchIndexValidationService
focal_class.var_name: searchIndexValidationService
focal_class.file: herd-code/herd-rest/src/main/java/org/finra/herd/rest/SearchIndexValidationRestController.java
focal_class.identifier: SearchIndexValidationRestController
focal_class.class_method_signature: SearchIndexValidationRestController.createSearchIndexValidation(@RequestBody SearchIndexValidationCreateRequest request)
focal_class.full_signature: @RequestMapping(value = SEARCH_INDEX_VALIDATION_URI_PREFIX, method = RequestMethod.POST, consumes = {"application/xml", "application/json"}) @Secured(SecurityFunctions.FN_SEARCH_INDEXES_VALIDATION_POST) public SearchIndexValidation createSearchIndexValidation(@RequestBody SearchIndexValidationCreateRequest request)
focal_class.identifier: createSearchIndexValidation
focal_class.modifiers: @RequestMapping(value = SEARCH_INDEX_VALIDATION_URI_PREFIX, method = RequestMethod.POST, consumes = {"application/xml", "application/json"}) @Secured(SecurityFunctions.FN_SEARCH_INDEXES_VALIDATION_POST) public
focal_class.parameters: (@RequestBody SearchIndexValidationCreateRequest request)
focal_class.return: SearchIndexValidation
focal_class.signature: SearchIndexValidation createSearchIndexValidation(@RequestBody SearchIndexValidationCreateRequest request)
focal_class.superclass: extends HerdBaseController
focal_method.body: @RequestMapping(value = SEARCH_INDEX_VALIDATION_URI_PREFIX, method = RequestMethod.POST, consumes = {"application/xml", "application/json"})
      @Secured(SecurityFunctions.FN_SEARCH_INDEXES_VALIDATION_POST)
      public SearchIndexValidation createSearchIndexValidation(@RequestBody SearchIndexValidationCreateRequest request)
      {
          return searchIndexValidationService.createSearchIndexValidation(request);
      }
focal_method.class_method_signature: SearchIndexValidationRestController.createSearchIndexValidation(@RequestBody SearchIndexValidationCreateRequest request)
focal_method.full_signature: @RequestMapping(value = SEARCH_INDEX_VALIDATION_URI_PREFIX, method = RequestMethod.POST, consumes = {"application/xml", "application/json"}) @Secured(SecurityFunctions.FN_SEARCH_INDEXES_VALIDATION_POST) public SearchIndexValidation createSearchIndexValidation(@RequestBody SearchIndexValidationCreateRequest request)
focal_method.identifier: createSearchIndexValidation
focal_method.invocations: createSearchIndexValidation
focal_method.modifiers: @RequestMapping(value = SEARCH_INDEX_VALIDATION_URI_PREFIX, method = RequestMethod.POST, consumes = {"application/xml", "application/json"}) @Secured(SecurityFunctions.FN_SEARCH_INDEXES_VALIDATION_POST) public
focal_method.parameters: (@RequestBody SearchIndexValidationCreateRequest request)
focal_method.return: SearchIndexValidation
focal_method.signature: SearchIndexValidation createSearchIndexValidation(@RequestBody SearchIndexValidationCreateRequest request)