protected function createConfigurableProduct()
 {
     $productId1 = 10;
     $productId2 = 20;
     $label = "color";
     $this->configurableAttribute = $this->eavConfig->getAttribute('catalog_product', 'test_configurable');
     $this->assertNotNull($this->configurableAttribute);
     $options = $this->getConfigurableAttributeOptions();
     $this->assertEquals(2, count($options));
     $configurableProductOptions = [["attribute_id" => $this->configurableAttribute->getId(), "label" => $label, "position" => 0, "values" => [["value_index" => $options[0]['option_id']], ["value_index" => $options[1]['option_id']]]]];
     $product = ["sku" => self::CONFIGURABLE_PRODUCT_SKU, "name" => self::CONFIGURABLE_PRODUCT_SKU, "type_id" => "configurable", "price" => 50, 'attribute_set_id' => 4, "custom_attributes" => [["attribute_code" => $this->configurableAttribute->getAttributeCode(), "value" => $options[0]['option_id']]], "extension_attributes" => ["configurable_product_options" => $configurableProductOptions, "configurable_product_links" => [$productId1, $productId2]]];
     $response = $this->createProduct($product);
     return $response;
 }