// Get the SCA module context.
ModuleContext moduleContext = CurrentModuleContext.getContext();
// Locate the Calculator service
CalculatorService calculatorService = (CalculatorService) moduleContext.locateService("CalculatorServiceComponent");
// Calculate
assertEquals(calculatorService.add(3, 2), 5.0);
assertEquals(calculatorService.subtract(3, 2), 1.0);
assertEquals(calculatorService.multiply(3, 2), 6.0);