ProcessLauncherContext { public static void set(final boolean redirectOutput, final Properties overriddenDefaults, final StartupStatusListener startupListener) { notNull(overriddenDefaults, "Invalid overriddenDefaults '" + overriddenDefaults + "' specified"); DATA.set(new ProcessLauncherContext(redirectOutput, overriddenDefaults, startupListener)); installLogListener(startupListener); } private  ProcessLauncherContext(final boolean redirectOutput, final Properties overriddenDefaults,
      final StartupStatusListener startupListener); static boolean isRedirectingOutput(); static Properties getOverriddenDefaults(); static StartupStatusListener getStartupListener(); static void set(final boolean redirectOutput, final Properties overriddenDefaults,
      final StartupStatusListener startupListener); static void remove(); static final String OVERRIDDEN_DEFAULTS_PREFIX; }
@Test public void null_overriddenDefaults_throwsIllegalArgumentException() { overriddenDefaults = null; assertThatThrownBy(() -> set(redirectOutput, overriddenDefaults, startupListener)) .isInstanceOf(NullPointerException.class) .hasMessage("Invalid overriddenDefaults 'null' specified"); }