src/DrupalExtension/Context/ServiceContainerContext.php
public function negateParameters($name, $expected) {
    try {
      $value = \Drupal::getContainer()->getParameter($name);
      Assert::notEq($value, $this->castParameter($expected));
    }
    catch (ParameterNotFoundException $e) {
    }
  }
public function negateParameters($name, $expected) {
    try {
      $value = \Drupal::getContainer()->getParameter($name);
      Assert::notEq($value, $this->castParameter($expected));
    }
    catch (ParameterNotFoundException $e) {
    }
  }
public function negateParameters ( $ name , $ expected ) { try { $ value = \ Drupal :: getContainer ( ) -> getParameter ( $ name ) ; Assert :: notEq ( $ value , $ this -> castParameter ( $ expected ) ) ; } catch ( ParameterNotFoundException $ e ) { } }
Assert given service parameter has not given value.

@Then the service parameter :name should not be set to :expected
Assert given service parameter has not given value .