/**
  * @dataProvider replaceKeyPairs
  */
 public function testReplaceKey($key, $value, $expected)
 {
     $config = ['top' => 'level', 'sub' => ['level' => 2, 'list' => ['one', 'two'], 'hash' => ['one' => 1, 'two' => 2], 'null' => null, 'object' => new stdClass()]];
     $updated = $this->configResource->replaceKey($key, $value, $config);
     $intersection = $this->arrayIntersectAssocRecursive($expected, $updated);
     $this->assertEquals($expected, $intersection);
     $this->assertEquals(2, count($updated));
 }