public void CanGetResourceMetadata()
        {
            var context = new DataRetrievingContextMock();

            context.RegisterResource(this.manager.GetFullPath(@"Default.Info"), @"http://www.fileserve.com/file/RDasF4t/Science.Channel.Through.the.Wormhole.S01E01.Is.There.a.Creator.720p.HDTV.x264-DHD.part1.rar");

            var target = new RetrievableTarget {
                Provider = this.browser.GetInfo().Id, Link = new Uri(@"http://www.fileserve.com/file/RDasF4t/Science.Channel.Through.the.Wormhole.S01E01.Is.There.a.Creator.720p.HDTV.x264-DHD.part1.rar")
            };
            var metadata = browser.GetResourceMetadata(context, target, new DownloadSpecification(null, null));

            Assert.AreEqual("Science.Channel.Through.the.Wormhole.S01E01.Is.There.a.Creator.720p.HDTV.x264-DHD.part1.rar", metadata.Name);
            Assert.AreEqual(Convert.ToInt64(200 * 1024 * 1024), metadata.Size);
            Assert.IsTrue(metadata.IsSizeApproximate());
        }