testCase.addProperty("testCaseId").setValue("345");
WsdlTestStep testStep = testCase.addTestStep(GroovyScriptStepFactory.GROOVY_TYPE, "GroovyScript");
MockTestRunner mockTestRunner = new MockTestRunner(testCase, Logger.getLogger("testing"));
MockTestRunContext context = new MockTestRunContext(mockTestRunner, testStep);
PropertyExpansionUtils.getGlobalProperties().setPropertyValue("testSuiteId", "testing");
SoapUI.getSettings().setBoolean(GlobalPropertySettings.ENABLE_OVERRIDE, false);
assertEquals("123", context.expand("${#Project#projectId}"));
assertEquals("234", context.expand("${#TestSuite#testSuiteId}"));
assertEquals("345", context.expand("${#TestCase#testCaseId}"));
SoapUI.getSettings().setBoolean(GlobalPropertySettings.ENABLE_OVERRIDE, true);
assertEquals("testing", context.expand("${#TestSuite#testSuiteId}"));
}