final CommandLineSetup commandLineSetup = new CommandLineSetup(toolName, args, resources);
final RunAsCmdSettings runAsCmdSettings = new RunAsCmdSettings("cmd line", checkoutDir.getAbsolutePath());
myCtx.checking(new Expectations() {{
oneOf(myRunnerParametersService).isRunningUnderWindows();
will(returnValue(true));
<BUG>oneOf(myRunnerParametersService).tryGetConfigParameter(Constants.USER_VAR);
will(returnValue(user));
oneOf(myRunnerParametersService).tryGetConfigParameter(Constants.PASSWORD_VAR);
will(returnValue(password));
oneOf(myFileService).getTempFileName(RunAsSetupBuilder.CREDENTIALS_EXT);</BUG>
will(returnValue(credentialsFile));

final CommandLineSetup commandLineSetup = new CommandLineSetup(toolName, args, resources);
final RunAsCmdSettings runAsCmdSettings = new RunAsCmdSettings("cmd line", checkoutDir.getAbsolutePath());
myCtx.checking(new Expectations() {{
oneOf(myRunnerParametersService).isRunningUnderWindows();
will(returnValue(true));
oneOf(myBuildFeatureParametersService).getBuildFeatureParameters(Constants.BUILD_FEATURE_TYPE, Constants.USER_VAR);
will(returnValue(Arrays.asList(user, "bbb")));
oneOf(myBuildFeatureParametersService).getBuildFeatureParameters(Constants.BUILD_FEATURE_TYPE, Constants.PASSWORD_VAR);
will(returnValue(Arrays.asList(password, "aaa")));
oneOf(myFileService).getTempFileName(RunAsSetupBuilder.CREDENTIALS_EXT);
will(returnValue(credentialsFile));
