public void VisitReceivePortAppliesEnvironmentOverrides()
        {
            using (new DeploymentContextInjectionScope(targetEnvironment: "ANYWHERE"))
            {
                var receivePortMock = new Mock <IReceivePort <string> >();
                receivePortMock.As <ISupportValidation>();
                var environmentSensitiveReceivePortMock = receivePortMock.As <ISupportEnvironmentOverride>();

                var sut = new EnvironmentOverrideApplicator();
                sut.VisitReceivePort(receivePortMock.Object);

                environmentSensitiveReceivePortMock.Verify(m => m.ApplyEnvironmentOverrides("ANYWHERE"), Times.Once);
            }
        }