test_class.declarator: notificationRegistrationStatusRestController
test_class.modifier: @InjectMocks
      private
test_class.original_string: @InjectMocks
      private NotificationRegistrationStatusRestController notificationRegistrationStatusRestController;
test_class.type: NotificationRegistrationStatusRestController
test_class.var_name: notificationRegistrationStatusRestController
test_class.declarator: notificationRegistrationStatusService
test_class.modifier: @Mock
      private
test_class.original_string: @Mock
      private NotificationRegistrationStatusService notificationRegistrationStatusService;
test_class.type: NotificationRegistrationStatusService
test_class.var_name: notificationRegistrationStatusService
test_class.file: herd-code/herd-rest/src/test/java/org/finra/herd/rest/NotificationRegistrationStatusRestControllerTest.java
test_class.identifier: NotificationRegistrationStatusRestControllerTest
test_class.superclass: extends AbstractRestTest
test_case.body: @Test
      public void testUpdateNotificationRegistrationStatusAssertSuccess()
      {
          NotificationRegistrationKey notificationRegistrationKey = new NotificationRegistrationKey(NAMESPACE, NOTIFICATION_NAME);
  
          NotificationRegistrationStatusUpdateRequest request = new NotificationRegistrationStatusUpdateRequest(NotificationRegistrationStatusEntity.DISABLED);
          NotificationRegistrationStatusUpdateResponse response =
              new NotificationRegistrationStatusUpdateResponse(notificationRegistrationKey, NotificationRegistrationStatusEntity.DISABLED);
  
          when(notificationRegistrationStatusService.updateNotificationRegistrationStatus(NAMESPACE, NOTIFICATION_NAME, request)).thenReturn(response);
  
          NotificationRegistrationStatusUpdateResponse resultResponse =
              notificationRegistrationStatusRestController.updateNotificationRegistrationStatus(NAMESPACE, NOTIFICATION_NAME, request);
  
          // Verify the external calls.
          verify(notificationRegistrationStatusService).updateNotificationRegistrationStatus(NAMESPACE, NOTIFICATION_NAME, request);
          verifyNoMoreInteractions(notificationRegistrationStatusService);
          // Validate the returned object.
          assertEquals(response, resultResponse);
      }
test_case.class_method_signature: NotificationRegistrationStatusRestControllerTest.testUpdateNotificationRegistrationStatusAssertSuccess()
test_case.full_signature: @Test public void testUpdateNotificationRegistrationStatusAssertSuccess()
test_case.identifier: testUpdateNotificationRegistrationStatusAssertSuccess
test_case.invocations: thenReturn when updateNotificationRegistrationStatus updateNotificationRegistrationStatus updateNotificationRegistrationStatus verify verifyNoMoreInteractions assertEquals
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testUpdateNotificationRegistrationStatusAssertSuccess()
focal_class.declarator: notificationRegistrationStatusService
focal_class.modifier: @Autowired
      private
focal_class.original_string: @Autowired
      private NotificationRegistrationStatusService notificationRegistrationStatusService;
focal_class.type: NotificationRegistrationStatusService
focal_class.var_name: notificationRegistrationStatusService
focal_class.file: herd-code/herd-rest/src/main/java/org/finra/herd/rest/NotificationRegistrationStatusRestController.java
focal_class.identifier: NotificationRegistrationStatusRestController
focal_class.class_method_signature: NotificationRegistrationStatusRestController.updateNotificationRegistrationStatus(@PathVariable("namespace") String namespace,
          @PathVariable("notificationName") String notificationName,
          @RequestBody NotificationRegistrationStatusUpdateRequest notificationRegistrationStatusUpdateRequest)
focal_class.full_signature: @Secured(SecurityFunctions.FN_NOTIFICATION_REGISTRATION_STATUS_PUT) @RequestMapping(value = "/notificationRegistrationStatus/namespaces/{namespace}/notificationNames/{notificationName}", method = RequestMethod.PUT, consumes = {"application/xml", "application/json"}) public NotificationRegistrationStatusUpdateResponse updateNotificationRegistrationStatus(@PathVariable("namespace") String namespace,
          @PathVariable("notificationName") String notificationName,
          @RequestBody NotificationRegistrationStatusUpdateRequest notificationRegistrationStatusUpdateRequest)
focal_class.identifier: updateNotificationRegistrationStatus
focal_class.modifiers: @Secured(SecurityFunctions.FN_NOTIFICATION_REGISTRATION_STATUS_PUT) @RequestMapping(value = "/notificationRegistrationStatus/namespaces/{namespace}/notificationNames/{notificationName}", method = RequestMethod.PUT, consumes = {"application/xml", "application/json"}) public
focal_class.parameters: (@PathVariable("namespace") String namespace,
          @PathVariable("notificationName") String notificationName,
          @RequestBody NotificationRegistrationStatusUpdateRequest notificationRegistrationStatusUpdateRequest)
focal_class.return: NotificationRegistrationStatusUpdateResponse
focal_class.signature: NotificationRegistrationStatusUpdateResponse updateNotificationRegistrationStatus(@PathVariable("namespace") String namespace,
          @PathVariable("notificationName") String notificationName,
          @RequestBody NotificationRegistrationStatusUpdateRequest notificationRegistrationStatusUpdateRequest)
focal_class.superclass: extends HerdBaseController
focal_method.body: @Secured(SecurityFunctions.FN_NOTIFICATION_REGISTRATION_STATUS_PUT)
      @RequestMapping(value = "/notificationRegistrationStatus/namespaces/{namespace}/notificationNames/{notificationName}", method = RequestMethod.PUT,
          consumes = {"application/xml", "application/json"})
      public NotificationRegistrationStatusUpdateResponse updateNotificationRegistrationStatus(@PathVariable("namespace") String namespace,
          @PathVariable("notificationName") String notificationName,
          @RequestBody NotificationRegistrationStatusUpdateRequest notificationRegistrationStatusUpdateRequest)
      {
          return notificationRegistrationStatusService.updateNotificationRegistrationStatus(namespace, notificationName,
              notificationRegistrationStatusUpdateRequest);
      }
focal_method.class_method_signature: NotificationRegistrationStatusRestController.updateNotificationRegistrationStatus(@PathVariable("namespace") String namespace,
          @PathVariable("notificationName") String notificationName,
          @RequestBody NotificationRegistrationStatusUpdateRequest notificationRegistrationStatusUpdateRequest)
focal_method.full_signature: @Secured(SecurityFunctions.FN_NOTIFICATION_REGISTRATION_STATUS_PUT) @RequestMapping(value = "/notificationRegistrationStatus/namespaces/{namespace}/notificationNames/{notificationName}", method = RequestMethod.PUT, consumes = {"application/xml", "application/json"}) public NotificationRegistrationStatusUpdateResponse updateNotificationRegistrationStatus(@PathVariable("namespace") String namespace,
          @PathVariable("notificationName") String notificationName,
          @RequestBody NotificationRegistrationStatusUpdateRequest notificationRegistrationStatusUpdateRequest)
focal_method.identifier: updateNotificationRegistrationStatus
focal_method.invocations: updateNotificationRegistrationStatus
focal_method.modifiers: @Secured(SecurityFunctions.FN_NOTIFICATION_REGISTRATION_STATUS_PUT) @RequestMapping(value = "/notificationRegistrationStatus/namespaces/{namespace}/notificationNames/{notificationName}", method = RequestMethod.PUT, consumes = {"application/xml", "application/json"}) public
focal_method.parameters: (@PathVariable("namespace") String namespace,
          @PathVariable("notificationName") String notificationName,
          @RequestBody NotificationRegistrationStatusUpdateRequest notificationRegistrationStatusUpdateRequest)
focal_method.return: NotificationRegistrationStatusUpdateResponse
focal_method.signature: NotificationRegistrationStatusUpdateResponse updateNotificationRegistrationStatus(@PathVariable("namespace") String namespace,
          @PathVariable("notificationName") String notificationName,
          @RequestBody NotificationRegistrationStatusUpdateRequest notificationRegistrationStatusUpdateRequest)