Can be overridden in tests.
9512
public Module getPlumbingModules(final Config config)
    {
        return new Module() {
            @Override
            public void configure(final Binder binder) {
                binder.install(new ConfigModule(config));
                binder.install(getLifecycleModule());

                binder.install(new JmxModule());
                binder.install(new JmxStarterModule(config));
                binder.install(new JmxLoggingModule(getServerType()));

                binder.install(new JvmPauseAlarmModule());
            }
        };
    }
778855
function(mocha, test) {
        test.parent._onlyTests = test.parent._onlyTests.concat(test);
        mocha.options.hasOnly = true;
        return test;
      }
956470
public boolean hasOverride(String operation) {
        boolean result = false;

        if (this.overrideOnce.containsKey(operation) == true || this.override.containsKey(operation) == true) {
            result = true;
        }

        return result;
    }
983271
def _may_override(self, implem, other):
        """"""
        if isinstance(other, ImplementationProperty):
            # Overriding another custom implementation for the same transition
            # and field
            return (other.transition == implem.transition and other.field_name == self.state_field)

        elif isinstance(other, TransitionWrapper):
            # Overriding the definition that led to adding the current
            # ImplementationProperty.
            return (
                other.trname == implem.transition.name
                and (not other.field or other.field == self.state_field)
                and other.func == implem.implementation)

        return False
568688
private void overrideUseMavenPatterns(T overrider, Class overriderClass) {
        if (useMavenPatternsOverrideList.contains(overriderClass.getSimpleName())) {
            try {
                Field useMavenPatternsField = overriderClass.getDeclaredField("useMavenPatterns");
                useMavenPatternsField.setAccessible(true);
                Object useMavenPatterns = useMavenPatternsField.get(overrider);

                if (useMavenPatterns == null) {
                    Field notM2CompatibleField = overriderClass.getDeclaredField("notM2Compatible");
                    notM2CompatibleField.setAccessible(true);
                    Object notM2Compatible = notM2CompatibleField.get(overrider);
                    if (notM2Compatible instanceof Boolean && notM2Compatible != null) {
                        useMavenPatternsField.set(overrider, !(Boolean)notM2Compatible);
                    }
                }
            } catch (NoSuchFieldException | IllegalAccessException e) {
                converterErrors.add(getConversionErrorMessage(overrider, e));
            }
        }
    }
459180
function(test) {
			var context = this.loopContext;
			var forkContext = this.forkContext;
			var testSegments = forkContext.makeNext(0, -1);

			// Update state.
			context.test = test;
			context.continueDestSegments = testSegments;
			forkContext.replaceHead(testSegments);
		}
999007
def cmp_out(test)
      test.out_result = FileUtils.cmp(test.expected_out_path, 
                                      test.result_out_path)
    end
217473
private OverriddenCucumberOptionsParameters overrideParametersWithCucumberOptions() throws MojoExecutionException {

        try {
            final OverriddenCucumberOptionsParameters overriddenParameters =
                new OverriddenCucumberOptionsParameters()
                    .setTags(tags)
                    .setGlue(glue)
                    .setStrict(strict)
                    .setPlugins(parseFormatAndPlugins(format, plugins == null ? new ArrayList<Plugin>() : plugins))
                    .setMonochrome(monochrome);


            if (cucumberOptions != null && cucumberOptions.length() > 0) {
                final RuntimeOptions options = new RuntimeOptions(cucumberOptions);
                overriddenParameters
                    .overrideTags(options.getFilters())
                    .overrideGlue(options.getGlue())
                    .overridePlugins(parsePlugins(options.getPluginNames()))
                    .overrideStrict(options.isStrict())
                    .overrideMonochrome(options.isMonochrome());
            }

            return overriddenParameters;
        } catch (IllegalArgumentException e) {
            throw new MojoExecutionException(this, "Invalid parameter. ", e.getMessage());
        }
    }
326536
function (test) {
        if (test.callback) {
            test.callback.fn.apply(test.callback.scope, test.callback.args);
        }
    }
563472
function assert(t) {
	if (!t.result) {
		errorMessages.push(t.message);

		var errorDetail;
		if (t.expected === undefined && t.actual === undefined) {
			errorDetail = 'Test "' + testName + '" assertion failed' + (t.message ? ': "' + t.message + '"' : '');
		} else {
			errorDetail = 'Test "' + testName + '" assertion failed. Expected <' + t.expected + '> Actual <' + t.actual + '>' + (t.message ? ': "' + t.message + '"' : '');
		}

		errorDetails.push(errorDetail);
	}
}
862309
function(test) {
			var context = this.loopContext;
			var forkContext = this.forkContext;

			context.test = test;

			// Creates paths of `continue` statements.
			if (!context.continueForkContext.empty) {
				context.continueForkContext.add(forkContext.head);
				var testSegments = context.continueForkContext.makeNext(0, -1);

				forkContext.replaceHead(testSegments);
			}
		}
14252
@Override
    public void interceptSetupMethod(IMethodInvocation invocation) throws Throwable {
        log.fine("before " + invocation.getFeature().getFeatureMethod().getReflection().getName());
        getTestRunner().before(invocation.getTarget(), invocation.getFeature().getFeatureMethod().getReflection(),
            new InvocationExecutor(invocation));
    }
139666
function (testObject) {
        if (testObject instanceof YUITest.TestSuite || testObject instanceof YUITest.TestCase) {
            this.items.push(testObject);
        }
        return this;
    }
810936
public <T> void assertThat(T actual, org.hamcrest.Matcher<? super T> matcher) {
    try {
      org.hamcrest.MatcherAssert.assertThat(actual, matcher);
    } catch (AssertionError e) {
      fail(e);
    }
  }
893234
public void setOverriddenParameters(java.util.Map<String, java.util.List<String>> overriddenParameters) {
        this.overriddenParameters = overriddenParameters;
    }
431742
private function doAddFault(Test $test, \Throwable $t, float $time, $type): void
    {
        if ($this->currentTestCase === null) {
            return;
        }

        if ($test instanceof SelfDescribing) {
            $buffer = $test->toString() . "\n";
        } else {
            $buffer = '';
        }

        $buffer .= TestFailure::exceptionToString($t) . "\n" .
            Filter::getFilteredStacktrace($t);

        $fault = $this->document->createElement(
            $type,
            Xml::prepareString($buffer)
        );

        if ($t instanceof ExceptionWrapper) {
            $fault->setAttribute('type', $t->getClassName());
        } else {
            $fault->setAttribute('type', \get_class($t));
        }

        $this->currentTestCase->appendChild($fault);
    }
976316
private static ContentMatcher createMatcher(
    SimpleTest test,
    ContentMatcher oldMatcher)
  {
    if (tc.isEntryEnabled())
      tc.entry(
        cclass,
        "createMatcher",
        "test: " + test + ", oldmatcher: " + oldMatcher);
    Identifier id = test.getIdentifier();
    boolean isExtended = (test instanceof ExtendedSimpleTestImpl);
    ContentMatcher ans;
    switch (id.getType())
    {
      case Selector.BOOLEAN :
        if(!isExtended)
        {
          if (tc.isDebugEnabled())
            tc.debug(
              cclass,
              "createMatcher",
              "New BooleanMatcher for id " + id.getName());
          ans = new BooleanMatcher(id);
        }
        else
        {
          if (tc.isDebugEnabled())
            tc.debug(
              cclass,
              "createMatcher",
              "New SetValBooleanMatcher for id " + id.getName());
          ans = new SetValBooleanMatcher(id);          
        }
        break;
      case Selector.UNKNOWN :
      case Selector.OBJECT :
        if (tc.isDebugEnabled())
          tc.debug(
            cclass,
            "createMatcher",
            "New EqualityMatcher for id " + id.getName());
        ans = new EqualityMatcher(id);
        break;
      case Selector.STRING :
      case Selector.TOPIC :
        if(!isExtended)
        {        
          if (tc.isDebugEnabled())
            tc.debug(
              cclass,
              "createMatcher",
              "New StringMatcher for id " + id.getName());
          ans = new StringMatcher(id);
        }
        else
        {
          if (tc.isDebugEnabled())
            tc.debug(
              cclass,
              "createMatcher",
              "New SetValStringMatcher for id " + id.getName());
          ans = new SetValStringMatcher(id);          
        }          
        break;
      case Selector.CHILD :
        if (tc.isDebugEnabled())
          tc.debug(
            cclass,
            "createMatcher",
            "New ExtensionMatcher for id " + id.getName());
        ans = new SetValChildAccessMatcher(id);
        break;        
      default :
        if(!isExtended)
        {             
          if (tc.isDebugEnabled())
            tc.debug(
              cclass,
              "createMatcher",
              "New NumericMatcher for id " + id.getName());
          ans = new NumericMatcher(id);
        }
        else
        {
          if (tc.isDebugEnabled())
            tc.debug(
              cclass,
              "createMatcher",
              "New SetValNumericMatcher for id " + id.getName());
          ans = new SetValNumericMatcher(id);          
        }
    }
    
    ans.vacantChild = oldMatcher;

    if (tc.isEntryEnabled())
      tc.exit(cclass, "createMatcher");
    return ans;
  }