The server image marco resolves server image identifiers by name.
Inheritance: IMacro
        public async Task ServerImage_SubstituteTokensInString_NotFound()
        {
            var client = new FakeHttpClient();
            client.AddResponse("/oec/0.9/base/imageWithDiskSpeed?name=RedHat 6 64-bit 2 CPU", "Image_Get_NotFound.xml");

            var macro = new ImageMacro();
            var input = "$serverImage['NA9', 'RedHat 6 64-bit 2 CPU']";
            await macro.SubstituteTokensInString(_runtimeContext, null, input);
        }
        public async Task ServerImage_SubstituteTokensInString_Success()
        {
            var client = new FakeHttpClient();
            client.AddResponse("/oec/0.9/base/imageWithDiskSpeed?name=RedHat 6 64-bit 2 CPU", "Image_Get.xml");

            var macro = new ImageMacro();
            var input = "$serverImage[$parameters['dataCenterId'], $parameters['imageName']]";
            var output = await Macro.SubstituteTokensInString(_runtimeContext, _taskContext, input);

            Assert.AreEqual("0bf731a8-29c5-4b8b-a460-2a60ab4019cf", output);
        }