@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);
}