public function __call($method, $arguments)
 {
     $resolved = $this->resolver->resolve($method, $arguments);
     $method = $resolved['method'];
     return $this->{$method}($resolved['route'], $resolved['parameters']);
 }
 public function testHandlesMagicData()
 {
     $resolver = new Resolver();
     $this->assertEquals(['method' => 'put', 'route' => '/zones/z/dns_records/a', 'parameters' => ['foo' => 'bar']], $resolver->resolve('dnsUpdate', ['z', 'a', ['foo' => 'bar']]));
 }