/**
  * Assert that customer group form equals to fixture data
  *
  * @param CustomerGroupIndex $customerGroupIndex
  * @param CustomerGroupNew $customerGroupNew
  * @param CustomerGroupInjectable $customerGroup
  * @param CustomerGroupInjectable $customerGroupOriginal
  * @return void
  */
 public function processAssert(CustomerGroupIndex $customerGroupIndex, CustomerGroupNew $customerGroupNew, CustomerGroupInjectable $customerGroup, CustomerGroupInjectable $customerGroupOriginal = null)
 {
     $data = $customerGroupOriginal !== null ? array_merge($customerGroupOriginal->getData(), $customerGroup->getData()) : $customerGroup->getData();
     $filter = ['code' => $data['customer_group_code']];
     $customerGroupIndex->open();
     $customerGroupIndex->getCustomerGroupGrid()->searchAndOpen($filter);
     $formData = $customerGroupNew->getPageMainForm()->getData();
     $dataDiff = $this->verifyForm($formData, $data);
     \PHPUnit_Framework_Assert::assertTrue(empty($dataDiff), 'Customer Group form was filled incorrectly.' . "\nLog:\n" . implode(";\n", $dataDiff));
 }