diff --git a/core/tests/Drupal/Tests/Core/Routing/UrlGeneratorTest.php b/core/tests/Drupal/Tests/Core/Routing/UrlGeneratorTest.php
index 079213e..8b10dd7 100644
--- a/core/tests/Drupal/Tests/Core/Routing/UrlGeneratorTest.php
+++ b/core/tests/Drupal/Tests/Core/Routing/UrlGeneratorTest.php
@@ -47,8 +47,10 @@ function setUp() {
     $routes = new RouteCollection();
     $first_route = new Route('/test/one');
     $second_route = new Route('/test/two/{narf}');
+    $fourth_route = new Route('/test/four', array(), array('_scheme' => 'https'));
     $routes->add('test_1', $first_route);
     $routes->add('test_2', $second_route);
+    $routes->add('test_4', $fourth_route);
 
     // Create a route provider stub.
     $provider = $this->getMockBuilder('Drupal\Core\Routing\RouteProvider')
@@ -57,6 +59,7 @@ function setUp() {
     $route_name_return_map = array(
       array('test_1', array(), $first_route),
       array('test_2', array('narf' => '5'), $second_route),
+      array('test_4', array(), $fourth_route),
     );
     $provider->expects($this->any())
       ->method('getRouteByName')
@@ -64,6 +67,7 @@ function setUp() {
     $routes_names_return_map = array(
       array(array('test_1'), array(), array($first_route)),
       array(array('test_2'), array('narf' => '5'), array($second_route)),
+      array(array('test_4'), array(), $fourth_route),
     );
     $provider->expects($this->any())
       ->method('getRoutesByNames')
@@ -77,6 +81,7 @@ function setUp() {
       array('test/one', NULL, 'hello/world'),
       array('test/two/5', NULL, 'goodbye/cruel/world'),
       array('node/123', NULL, 'node/123'),
+      array('test/four', NULL, 'test/four'),
     );
     $alias_manager->expects($this->any())
       ->method('getPathAlias')
@@ -124,6 +129,14 @@ public function testAbsoluteURLGeneration() {
   }
 
   /**
+   * Test that the 'scheme' route requirement is respected during url generation.
+   */
+  public function testUrlGenerationWithHttpsRequirement() {
+    $url = $this->generator->generate('test_4', array(), TRUE);
+    $this->assertEquals('https://localhost/test/four', $url);
+  }
+
+  /**
    * Tests path-based URL generation.
    */
   public function testPathBasedURLGeneration() {
