diff --git a/core/modules/system/tests/modules/url_alter_test/lib/Drupal/url_alter_test/Controller/URLAlterTestController.php b/core/modules/system/tests/modules/url_alter_test/lib/Drupal/url_alter_test/Controller/URLAlterTestController.php
new file mode 100644
index 0000000..0111f28
--- /dev/null
+++ b/core/modules/system/tests/modules/url_alter_test/lib/Drupal/url_alter_test/Controller/URLAlterTestController.php
@@ -0,0 +1,22 @@
+<?php
+/**
+ * @file
+ * Contains \Drupal\url_alter_test\Controller\URLAlterTestController.
+ */
+
+namespace Drupal\url_alter_test\Controller;
+
+/**
+ * Controller routines for url_alter_test routes.
+ */
+class URLAlterTestController {
+  /**
+   * Prints Current and Request Path.
+   *
+   */
+  public function foo() {
+    print 'current_path=' . current_path() . ' request_path=' . request_path();
+    exit;
+  }
+
+}
diff --git a/core/modules/system/tests/modules/url_alter_test/url_alter_test.module b/core/modules/system/tests/modules/url_alter_test/url_alter_test.module
index a7567a3..5582714 100644
--- a/core/modules/system/tests/modules/url_alter_test/url_alter_test.module
+++ b/core/modules/system/tests/modules/url_alter_test/url_alter_test.module
@@ -11,17 +11,8 @@
 function url_alter_test_menu() {
   $items['url-alter-test/foo'] = array(
     'title' => 'Foo',
-    'page callback' => 'url_alter_test_foo',
-    'access arguments' => array('access content'),
+    'route_name' => 'url_alter_test_foo',
     'type' => MENU_CALLBACK,
   );
   return $items;
 }
-
-/**
- * Menu callback.
- */
-function url_alter_test_foo() {
-  print 'current_path=' . current_path() . ' request_path=' . request_path();
-  exit;
-}
diff --git a/core/modules/system/tests/modules/url_alter_test/url_alter_test.routing.yml b/core/modules/system/tests/modules/url_alter_test/url_alter_test.routing.yml
new file mode 100644
index 0000000..da07ab8
--- /dev/null
+++ b/core/modules/system/tests/modules/url_alter_test/url_alter_test.routing.yml
@@ -0,0 +1,6 @@
+url_alter_test_foo:
+  pattern: 'url-alter-test/foo'
+  defaults:
+    _content: '\Drupal\url_alter_test\Controller\URLAlterTestController::foo'
+  requirements:
+    _permission: 'access content'
