/**
  * @param $data
  * @param bool $expectOptions
  * @dataProvider populateWithArrayDataProvider
  */
 public function testPopulate($data, $expectOptions = false)
 {
     $attributeMetadata = $this->_builder->populateWithArray($data)->create();
     $attributeMetadataA = $this->_builder->populate($attributeMetadata)->create();
     if ($expectOptions) {
         $this->assertInstanceOf('\\Magento\\Customer\\Service\\V1\\Data\\Eav\\Option', $attributeMetadataA->getOptions()[0]);
     }
     $this->assertEquals($attributeMetadata, $attributeMetadataA);
 }