public function testGetDefaultValueByLocaleId()
 {
     $defaultValue = new AttributeDefaultValue();
     $defaultValue->setString('default');
     $firstLocale = $this->createLocale(1);
     $firstLocaleValue = new AttributeDefaultValue();
     $firstLocaleValue->setString('first')->setLocale($firstLocale);
     $secondLocale = $this->createLocale(2);
     $secondLocaleValue = new AttributeDefaultValue();
     $secondLocaleValue->setString('second')->setLocale($secondLocale);
     $attribute = new Attribute();
     $attribute->resetDefaultValues([$defaultValue, $firstLocaleValue, $secondLocaleValue]);
     $this->assertEquals($defaultValue, $attribute->getDefaultValueByLocaleId(null));
     $this->assertEquals($firstLocaleValue, $attribute->getDefaultValueByLocaleId($firstLocale->getId()));
     $this->assertEquals($secondLocaleValue, $attribute->getDefaultValueByLocaleId($secondLocale->getId()));
     $this->assertNull($attribute->getDefaultValueByLocaleId(42));
 }