public function testCountByMime()
{
list($handler, $repo, $auth, $keygen) = $this->getMocks();
$instance = new Storage($handler, $repo, $auth, $keygen);
$repo->shouldReceive('countGroupBy')->andReturn(10);
$this->assertEquals(10, $instance->countByMime());
}