diff --git a/core/tests/Drupal/Tests/Core/Controller/ControllerResolverTest.php b/core/tests/Drupal/Tests/Core/Controller/ControllerResolverTest.php
index 0b7aa25..4238097 100644
--- a/core/tests/Drupal/Tests/Core/Controller/ControllerResolverTest.php
+++ b/core/tests/Drupal/Tests/Core/Controller/ControllerResolverTest.php
@@ -248,6 +248,20 @@ public function testGetArgumentsWithRouteMatchAndPsr7Request() {
     $this->assertInstanceOf('Psr\Http\Message\ServerRequestInterface', $arguments[1], 'Ensure that the PSR-7 object is passed along as well');
   }
 
+  /**
+   * Tests getArguments with a route match and a request with raw variables.
+   *
+   * @covers ::getArguments
+   * @covers ::doGetArguments
+   */
+  public function testGetRawArgumentsWithRouteMatchAndRequest() {
+    $request = Request::create('/test');
+    $request->attributes->set('_raw_variables', ['request' => 'RAW']);
+    $mock_controller = new MockController();
+    $arguments = $this->controllerResolver->getArguments($request, [$mock_controller, 'getControllerWithRequestAndRouteMatch']);
+    $this->assertTrue(in_array('RAW', $arguments, TRUE), 'Set raw variables');
+  }
+
 }
 
 class MockController {
