diff --git a/core/modules/rest/tests/src/Kernel/RequestHandlerTest.php b/core/modules/rest/tests/src/Kernel/RequestHandlerTest.php
index 4b30b88..5f6a2b3 100644
--- a/core/modules/rest/tests/src/Kernel/RequestHandlerTest.php
+++ b/core/modules/rest/tests/src/Kernel/RequestHandlerTest.php
@@ -119,9 +119,8 @@ public function providerTestSerialization() {
       [['test' => 'foobar']],
       [TRUE],
       [FALSE],
-      // @todo Not supported. https://www.drupal.org/node/2427811
-      // [new \stdClass()],
-      // [(object) ['test' => 'foobar']],
+      [new \stdClass()],
+      [(object) ['test' => 'foobar']],
     ];
   }
 
