diff --git a/tests/src/Functional/AmpFormatterTest.php b/tests/src/Functional/AmpFormatterTest.php
index 14d2035..aee96e1 100644
--- a/tests/src/Functional/AmpFormatterTest.php
+++ b/tests/src/Functional/AmpFormatterTest.php
@@ -5,6 +5,7 @@ namespace Drupal\Tests\amp\Functional;
 use Drupal\Core\Url;
 use Drupal\node\Entity\Node;
 use Drupal\simpletest\ContentTypeCreationTrait;
+use Drupal\simpletest\TestFileCreationTrait;
 use Drupal\Tests\BrowserTestBase;
 
 /**
@@ -15,6 +16,7 @@ use Drupal\Tests\BrowserTestBase;
 class AmpFormatterTest extends BrowserTestBase {
 
   use ContentTypeCreationTrait;
+  use TestFileCreationTrait;
 
   /**
    * Modules to enable.
@@ -79,7 +81,7 @@ class AmpFormatterTest extends BrowserTestBase {
     // Create a node to test AMP field formatters.
     $node = Node::create([
       'type' => 'article',
-      'title' => $this->randomMachineName(),
+      'title' => 'Hello AMP',
       'body' => 'AMP test body',
     ]);
     $node->save();
@@ -132,5 +134,40 @@ class AmpFormatterTest extends BrowserTestBase {
     $this->assertSession()->pageTextContains('AMP-HTML Validation Issues and Fixes');
     $this->assertSession()->pageTextContains('-------------------------------------');
     $this->assertSession()->pageTextContains('PASS');
+
+    // Configure AMP metadata.
+    $amp_metadata_add = Url::fromRoute('entity.amp_metadata.add_form')->toString();
+    $this->drupalGet($amp_metadata_add);
+    $this->assertSession()->statusCodeEquals(200);
+    // Create a new image.
+    $image = current($this->drupalGetTestFiles('image'));
+    $edit = [
+      "amp_organization_name" => 'Excellent AMP Organization',
+      "files[amp_organization_logo_fid_new]" => drupal_realpath($image->uri),
+      "amp_organization_logo_image_style_id" => "amp_metadata_logo_600x60",
+      "amp_content_schema_type" => "NewsArticle",
+      "amp_content_headline" => "Every Article Headline",
+      "amp_content_author" => "Every Author Name",
+      "amp_content_description" => "Every single description",
+      "amp_content_image" => drupal_realpath($image->uri),
+      "amp_content_image_style_id" => "amp_metadata_content_image_min_696px_wide",
+    ];
+    $this->submitForm($edit, t('Save'));
+
+    // Test for the AMP metadata.
+    $this->drupalGet($amp_node_url);
+    $this->assertSession()->statusCodeEquals(200);
+    $this->assertSession()->responseContains('"@context": "http://schema.org",');
+    $this->assertSession()->responseContains('"@type": "NewsArticle",');
+    $this->assertSession()->responseContains('"headline": "Every Article Headline"');
+    $this->assertSession()->responseContains('"author": {');
+    $this->assertSession()->responseContains('"@type": "Person",');
+    $this->assertSession()->responseContains('"name": "Every Author Name"');
+    $this->assertSession()->responseContains('"description": "Every single description",');
+    //$this->assertSession()->responseContains('"publisher": {');
+    //$this->assertSession()->responseContains('"@type": "Organization",');
+    //$this->assertSession()->responseContains('"name": "Excellent AMP Organization",');
+    //$this->assertSession()->responseContains('"logo": {');
+    //$this->assertSession()->responseContains('"@type": "ImageObject",');
   }
 }
