diff --git a/core/modules/config/lib/Drupal/config/Tests/ConfigEntityUnitTest.php b/core/modules/config/lib/Drupal/config/Tests/ConfigEntityUnitTest.php
index d64c73a..7eedf16 100644
--- a/core/modules/config/lib/Drupal/config/Tests/ConfigEntityUnitTest.php
+++ b/core/modules/config/lib/Drupal/config/Tests/ConfigEntityUnitTest.php
@@ -40,4 +40,21 @@ public function testStorageControllerMethods() {
     $this->assertIdentical($controller->getConfigPrefix(), $expected);
   }
 
+  /**
+   * Tests the behavior of creating conflicting entities.
+   */
+  public function testCreatingConflictingEntities() {
+    // Create an entity with a label.
+    $entity = entity_create('config_test', array('id' => 'foo', 'label' => 'Foo', 'style' => 'foo'));
+    $entity->save();
+
+    // Create an entity with the same ID, but a different label.
+    $entity = entity_create('config_test', array('id' => 'foo', 'label' => 'Bananas'));
+    $entity->save();
+
+    // Creating an entity with the same machine name should not succeed.
+    $this->assertEqual($entity->label(), 'Foo', 'The entity label was not overwritten.');
+    $this->assertEqual($entity->style, 'foo', 'The entity style was not overwritten.');
+  }
+
 }
