diff --git a/core/modules/system/lib/Drupal/system/Tests/Module/ModuleEnable.php b/core/modules/system/lib/Drupal/system/Tests/Module/ModuleEnable.php
index b2d08fc..0c2ba51 100644
--- a/core/modules/system/lib/Drupal/system/Tests/Module/ModuleEnable.php
+++ b/core/modules/system/lib/Drupal/system/Tests/Module/ModuleEnable.php
@@ -44,4 +44,33 @@ function testRequiredModuleSchemaVersions() {
     $this->assertTrue($version > 0, 'User module version is > 0.');
   }

+  /**
+   * Tests refreshing of static data when new modules are enabled.
+   */
+  function testStaticReset() {
+    // Get data from hook_test.
+    $first = $this->retrieveStaticTestHookData();
+    // Enable a module that implements that hook.
+    module_enable(array('module_test'));
+    // Get the data again.
+    $second = $this->retrieveStaticTestHookData();
+    // Assert that the data has changed.
+    $this->assertNotEqual($first, $second, 'Static data was refreshed on enabling a module');
+    module_disable(array('module_test'));
+    $third = $this->retrieveStaticTestHookData();
+    // Assert that the data has changed again.
+    $this->assertNotEqual($second, $third, 'Static data was refreshed on disabling a module');
+  }
+
+  /**
+   * Return the statically cached result of the test_hook implementations.
+   */
+  protected function retrieveStaticTestHookData() {
+    $data = &drupal_static(__FUNCTION__);
+    if (!isset($data)) {
+      $data = module_invoke_all('test_hook');
+    }
+    return $data;
+  }
+
 }
