public void ShouldListKeys()
        {
            // Arrange.
            var connectionManager = RiakConnectionManager.FromConfiguration;
            var repository = new RiakBucketRepository(connectionManager);
            var documentRepository = new RiakContentRepository(connectionManager);
            connectionManager.AddConnection("192.168.30.118", 8087);

            for (var i = 0; i < 3; i++ )
            {
                documentRepository.Persist(x =>
                {
                    x.Bucket = "test_bucket";
                    x.Key = string.Format("test_key_{0}", i);
                    x.ReturnBody = true;
                    x.Write = 1;
                    x.DW = 1;
                    x.Content = new RiakContent
                    {
                        ContentType = "text/plain".GetBytes(),
                        Value = "this is a test".GetBytes()
                    };
                });   
            }

            // Act.
            var response = repository.ListKeysFor(new ListKeysRequest {Bucket = "test_bucket".GetBytes()});

            // Assert.
            Assert.IsTrue(response.ResponseCode == RiakResponseCode.Successful);
            Console.WriteLine("response count: " + response.Result.Length);
            Assert.IsTrue(response.Result.Length > 0);
        }
        public void ShouldListBuckets()
        {
            // Arrange.
            var connectionManager = RiakConnectionManager.FromConfiguration;
            var repository = new RiakBucketRepository(connectionManager);
            connectionManager.AddConnection("192.168.30.118", 8087);

            // Act.
            var response = repository.ListBuckets();

            // Assert.
            Assert.IsTrue(response.ResponseCode == RiakResponseCode.Successful);
        }