public void GetRealBuildNumber()
        {
            IBuildAdapter buildAdapter = Mock.Create <IBuildAdapter>();

            Mock.Arrange(() => buildAdapter.GetBuildStatusXml()).Returns(string.Empty);
            Mock.Arrange(() => buildAdapter.GetQueuedBuildNumber(Arg.IsAny <string>(), Arg.IsAny <string>())).Returns(32);

            var    jenkinsBuild    = new BuildService(buildAdapter);
            string nextBuildNumber = jenkinsBuild.GetRealBuildNumber("32");

            Assert.AreEqual <string>(
                "32",
                nextBuildNumber,
                "The next build number was incorrect.");
        }