diff --git a/core/modules/media/tests/src/Kernel/MediaEntitiesNormalizerTest.php b/core/modules/media/tests/src/Kernel/MediaEntitiesNormalizerTest.php
new file mode 100644
index 0000000..d227631
--- /dev/null
+++ b/core/modules/media/tests/src/Kernel/MediaEntitiesNormalizerTest.php
@@ -0,0 +1,95 @@
+<?php
+
+namespace Drupal\Tests\media\Kernel;
+
+use Drupal\Component\Serialization\Json;
+use Drupal\KernelTests\KernelTestBase;
+use Drupal\media\Entity\Media;
+use Drupal\media\Entity\MediaType;
+use Drupal\Tests\media\Functional\MediaFunctionalTestCreateMediaTypeTrait;
+use Symfony\Component\Serializer\Exception\UnsupportedException;
+
+/**
+ * @coversDefaultClass \Drupal\media\Normalizer\MediaEntitiesNormalizer
+ * @group media
+ *
+ * @todo Remove this in https://www.drupal.org/node/2895573
+ */
+class MediaEntitiesNormalizerTest extends KernelTestBase {
+
+  use MediaFunctionalTestCreateMediaTypeTrait;
+
+  /**
+   * {@inheritdoc}
+   */
+  public static $modules = [
+    'serialization',
+    'rest',
+    'media',
+    'media_test_source',
+    'field',
+    'image',
+    'user',
+    'file',
+  ];
+
+  /**
+   * @covers ::normalize
+   * @dataProvider providerTestNormalize
+   */
+  public function testNormalize($entity_type_id, $operation) {
+    $this->setExpectedException(UnsupportedException::class, "Normalizing $entity_type_id entities is not yet supported.");
+
+    $media_type = $this->createMediaType();
+    if ($entity_type_id === 'media') {
+      $media = Media::create([
+        'bundle' => $media_type->id(),
+        'name' => 'Unnamed',
+      ]);
+    }
+    $entity_under_test = $entity_type_id === 'media' ? $media : $media_type;
+
+    $this->container->get('serializer')->$operation($entity_under_test, 'json');
+  }
+
+  public function providerTestNormalize() {
+    return [
+      'normalize Media' => ['media', 'normalize'],
+      'serialize Media' => ['media', 'serialize'],
+      'normalize Media Type' => ['media_type', 'normalize'],
+      'serialize Media Type' => ['media_type', 'serialize'],
+    ];
+  }
+
+  /**
+   * @covers ::denormalize
+   * @dataProvider providerTestDenormalize
+   */
+  public function testDenormalize($entity_type_id, $operation) {
+    $this->setExpectedException(UnsupportedException::class, "Denormalizing $entity_type_id entities is not yet supported.");
+
+    $data = [];
+    $class = MediaType::class;
+    if ($entity_type_id === 'media') {
+      $media_type = $this->createMediaType();
+      $data = ['bundle' => $media_type->id()];
+      $class = Media::class;
+    }
+
+    if ($operation === 'deserialize') {
+      $data = Json::encode($data);
+    }
+
+    $this->container->get('serializer')->$operation($data, $class, 'json');
+  }
+
+  public function providerTestDenormalize() {
+    return [
+      'denormalize Media' => ['media', 'denormalize'],
+      'deserialize Media' => ['media', 'deserialize'],
+      'denormalize Media Type' => ['media_type', 'denormalize'],
+      'deserialize Media Type' => ['media_type', 'deserialize'],
+    ];
+  }
+
+}
diff --git a/core/modules/media/tests/src/Kernel/MediaResourceTest.php b/core/modules/media/tests/src/Kernel/MediaResourceTest.php
new file mode 100644
index 0000000..0623257
--- /dev/null
+++ b/core/modules/media/tests/src/Kernel/MediaResourceTest.php
@@ -0,0 +1,47 @@
+<?php
+
+namespace Drupal\Tests\media\Kernel;
+
+use Drupal\Component\Plugin\Exception\PluginNotFoundException;
+use Drupal\KernelTests\KernelTestBase;
+use Drupal\rest\Entity\RestResourceConfig;
+use Drupal\rest\RestResourceConfigInterface;
+
+/**
+ * @group media
+ *
+ * @todo Remove this in https://www.drupal.org/node/2895573
+ */
+class MediaResourceTest extends KernelTestBase {
+
+  /**
+   * {@inheritdoc}
+   */
+  public static $modules = ['serialization', 'rest', 'media'];
+
+  /**
+   * @dataProvider providerTestEnableMediaEntityType
+   */
+  public function testEnableMediaResource($entity_type_id) {
+    $this->setExpectedException(PluginNotFoundException::class, 'The "entity:' . $entity_type_id . '" plugin does not exist.');
+    RestResourceConfig::create([
+      'id' => 'entity.' . $entity_type_id,
+      'granularity' => RestResourceConfigInterface::RESOURCE_GRANULARITY,
+      'configuration' => [
+        'methods' => ['GET'],
+        'formats' => ['json'],
+        'authentication' => ['cookie'],
+      ],
+    ])
+      ->enable()
+      ->save();
+  }
+
+  public function providerTestEnableMediaEntityType() {
+    return [
+      ['media'],
+      ['media_type'],
+    ];
+  }
+
+}
