code: @Invalidate
      public void tearDown() {
          if (registration != null) {
              registration.unregister();
              registration = null;
          }
          if (factoryRegistration != null) {
              factoryRegistration.unregister();
              factoryRegistration = null;
          }
      }
docs: Unregisters the validator service.