public void NoHeaderOnGetInstanceConfigIfEmptyInstanceConfigName()
        {
            var invoker = new FakeCallInvoker();
            var client = new InstanceAdminClientBuilder {
                CallInvoker = invoker
            }.Build();

            client.GetInstanceConfig(new GetInstanceConfigRequest());
            Assert.Null(invoker.Metadata.FirstOrDefault(e => e.Key == ResourcePrefixHeader));
        }
        public void SetsHeaderOnGetInstanceConfig()
        {
            var invoker = new FakeCallInvoker();
            var client = new InstanceAdminClientBuilder {
                CallInvoker = invoker
            }.Build();

            client.GetInstanceConfig(new GetInstanceConfigRequest {
                Name = SampleInstanceConfigName
            });
            Metadata.Entry entry = Assert.Single(invoker.Metadata, e => e.Key == ResourcePrefixHeader);
            Assert.Equal(SampleProjectName, entry.Value);
        }