diff --git a/tests/lib/SimpleSAML/Store/RedisStoreTest.php b/tests/lib/SimpleSAML/Store/RedisStoreTest.php
index 94b5560a23257e844bcaf79007dfa6baa9447c23..7bc70076f2afd7c4a50b66018ad5185ffe465600 100644
--- a/tests/lib/SimpleSAML/Store/RedisStoreTest.php
+++ b/tests/lib/SimpleSAML/Store/RedisStoreTest.php
@@ -7,7 +7,6 @@ namespace SimpleSAML\Test\Store;
 use PHPUnit\Framework\TestCase;
 use PHPUnit\Framework\MockObject\MockObject;
 use Predis\Client;
-use ReflectionClass;
 use SimpleSAML\Configuration;
 use SimpleSAML\Store;
 use SimpleSAML\Store\StoreFactory;
diff --git a/tests/lib/SimpleSAML/Store/SQLStoreTest.php b/tests/lib/SimpleSAML/Store/SQLStoreTest.php
index b6166ae3fabcc1aff148589463a25eaff02b2256..d8e43b7327dcc2e3d66606610ca1904e8c723e49 100644
--- a/tests/lib/SimpleSAML/Store/SQLStoreTest.php
+++ b/tests/lib/SimpleSAML/Store/SQLStoreTest.php
@@ -5,7 +5,6 @@ declare(strict_types=1);
 namespace SimpleSAML\Test\Store;
 
 use PHPUnit\Framework\TestCase;
-use ReflectionClass;
 use SimpleSAML\Configuration;
 use SimpleSAML\Store;
 use SimpleSAML\Store\StoreFactory;
diff --git a/tests/lib/SimpleSAML/Store/StoreFactoryTest.php b/tests/lib/SimpleSAML/Store/StoreFactoryTest.php
index 75686421199ad7a7b874938a4c54754217718da3..e1f332831e5fa6975f5a30dc2ac363699e62e410 100644
--- a/tests/lib/SimpleSAML/Store/StoreFactoryTest.php
+++ b/tests/lib/SimpleSAML/Store/StoreFactoryTest.php
@@ -4,7 +4,9 @@ declare(strict_types=1);
 
 namespace SimpleSAML\Test;
 
+use PHPUnit\Framework\MockObject\MockObject;
 use PHPUnit\Framework\TestCase;
+use Predis\Client;
 use ReflectionClass;
 use SimpleSAML\Configuration;
 use SimpleSAML\Error\CriticalConfigurationError;
@@ -65,6 +67,26 @@ class StoreFactoryTest extends TestCase
     }
 
 
+    /**
+     * @test
+     */
+    public function redisStore(): void
+    {
+        Configuration::loadFromArray([
+            'store.type'                    => 'redis',
+            'store.redis.prefix'            => 'phpunit_',
+        ], '[ARRAY]', 'simplesaml');
+
+        $store = StoreFactory::getInstance();
+        $store->redis = $this->getMockBuilder(Client::class)
+                                   ->setMethods(['get', 'set', 'setex', 'del', 'disconnect', '__destruct'])
+                                   ->disableOriginalConstructor()
+                                   ->getMock();
+
+        $this->assertInstanceOf(Store\RedisStore::class, $store);
+    }
+
+
     /**
      * @test
      */