* it can add a new product for this variation, remember you have to
* creates the Configurable Attributes Data first (above code)
*/
ConfigurableProductData prdData1 = new ConfigurableProductData();
ConfigurableData confgDataSizeOne = new ConfigurableData();
confgDataSizeOne.setAttributeId(126);
confgDataSizeOne.setLabel("P");
confgDataSizeOne.setValueIndex(6);
ConfigurableData confgDataColorOne = new ConfigurableData();
confgDataColorOne.setAttributeId(83);
confgDataColorOne.setLabel("blue");
confgDataColorOne.setValueIndex(15);
prdData1.getData().add(confgDataSizeOne);
prdData1.getData().add(confgDataColorOne);
try {
prdData1.configurateProduct(product, new Double(10), new Double(100));
} catch (ConfigurableDataException e) {
e.printStackTrace();
fail(e.getMessage());
}
ConfigurableProductData prdData2 = new ConfigurableProductData();
ConfigurableData confgDataSizeTwo = new ConfigurableData();
confgDataSizeTwo.setAttributeId(126);
confgDataSizeTwo.setLabel("M");
confgDataSizeTwo.setValueIndex(7);
ConfigurableData confgDataColorTwo = new ConfigurableData();
confgDataColorTwo.setAttributeId(83);
confgDataColorTwo.setLabel("red");
confgDataColorTwo.setValueIndex(14);
prdData2.getData().add(confgDataSizeTwo);
prdData2.getData().add(confgDataColorTwo);
try {