protected function _before()
 {
     $this->parametersSorter = $this->getMockBuilder('Team3\\PayU\\SignatureCalculator\\ParametersSorter\\ParametersSorter')->disableOriginalConstructor()->getMock();
     $this->parametersSorter->expects($this->any())->method('getSortedParameters')->withAnyParameters()->willReturn(['a' => 1, 'b' => 2, 'c' => 3]);
     $encoder = $this->getMockBuilder('Team3\\PayU\\SignatureCalculator\\Encoder\\Encoder')->disableOriginalConstructor()->getMock();
     $encoder->expects($this->any())->method('encode')->withAnyParameters()->willReturn(self::ENCODED_STRING);
     $this->signatureCalculator = new OrderSignatureCalculator($encoder, $this->parametersSorter, $this->getLogger());
 }
 /**
  * @param OrderInterface $order
  *
  * @return array
  */
 private function getSortedParameters(OrderInterface $order)
 {
     return $this->parametersSorter->getSortedParameters($order);
 }