+TEST_F(InMemeoryStorageBackendFixture, hasBucket) {
+ using ::testing::ReturnRef;
+ using ::testing::IsEmpty;
+
+ FakeInMemoryStorageBackend backend;
+ EXPECT_CALL(backend, buckets())
+ .WillRepeatedly(ReturnRef(m_buckets));
+
+ PolicyBucketId bucketId = "bucket";
+ m_buckets.insert({ bucketId, PolicyBucket() });
+
+ ASSERT_TRUE(backend.hasBucket(bucketId));
+ ASSERT_FALSE(backend.hasBucket("non-existent"));
+}
+