 .../src/Functional/ModerationStateResourceTest.php | 38 ++++++++++++++++++++++
 1 file changed, 38 insertions(+)

diff --git a/core/modules/content_moderation/tests/src/Functional/ModerationStateResourceTest.php b/core/modules/content_moderation/tests/src/Functional/ModerationStateResourceTest.php
new file mode 100644
index 0000000..fe9c8cb
--- /dev/null
+++ b/core/modules/content_moderation/tests/src/Functional/ModerationStateResourceTest.php
@@ -0,0 +1,38 @@
+<?php
+
+namespace Drupal\Tests\content_moderation\Functional;
+
+use Drupal\Component\Plugin\Exception\PluginNotFoundException;
+use Drupal\rest\Entity\RestResourceConfig;
+use Drupal\rest\RestResourceConfigInterface;
+use Drupal\Tests\BrowserTestBase;
+
+/**
+ * @group content_moderation
+ */
+class ContentModerationResourceTest extends BrowserTestBase {
+
+  /**
+   * {@inheritdoc}
+   */
+  public static $modules = ['rest', 'content_moderation'];
+
+  /**
+   * @see content_moderation_rest_resource_alter()
+   */
+  public function testCreateContentModerationStateResource() {
+    $this->setExpectedException(PluginNotFoundException::class, 'The "entity:content_moderation_state" plugin does not exist.');
+    RestResourceConfig::create([
+      'id' => 'entity.content_moderation_state',
+      'granularity' => RestResourceConfigInterface::RESOURCE_GRANULARITY,
+      'configuration' => [
+        'methods' => ['GET'],
+        'formats' => ['json'],
+        'authentication' => ['cookie'],
+      ],
+    ])
+      ->enable()
+      ->save();
+  }
+
+}
