public function testCreateRest()
 {
     $this->scopeConfig->expects($this->once())->method('isSetFlag')->with($this->equalTo(Payupl::XML_PATH_CLASSIC_API), $this->equalTo('store'))->willReturn(false);
     $object = $this->getMockBuilder(Client::class)->disableOriginalConstructor()->getMock();
     $this->objectManager->expects($this->once())->method('create')->with($this->equalTo(Client\Rest::class), $this->equalTo([]))->willReturn($object);
     $this->assertEquals($object, $this->model->create());
 }
 /**
  * @expectedException InvalidArgumentException
  * @dataProvider getInvalidClasses
  */
 public function testInvalidProviderThrowsException($class)
 {
     $client = ClientFactory::create(["adapter" => ["name" => $class]]);
 }