diff --git a/core/modules/serialization/src/Tests/RegisterSerializationClassesCompilerPassTest.php b/core/modules/serialization/tests/src/Unit/RegisterSerializationClassesCompilerPassTest.php
similarity index 97%
rename from core/modules/serialization/src/Tests/RegisterSerializationClassesCompilerPassTest.php
rename to core/modules/serialization/tests/src/Unit/RegisterSerializationClassesCompilerPassTest.php
index 6406bbb..2d14a4c 100644
--- a/core/modules/serialization/src/Tests/RegisterSerializationClassesCompilerPassTest.php
+++ b/core/modules/serialization/tests/src/Unit/RegisterSerializationClassesCompilerPassTest.php
@@ -1,6 +1,6 @@
 <?php
 
-namespace Drupal\serialization\Tests;
+namespace Drupal\Tests\serialization\Unit;
 
 use Drupal\Core\DependencyInjection\ContainerBuilder;
 use Drupal\serialization\RegisterSerializationClassesCompilerPass;
