public function testReturnsShapes()
 {
     $sm = new ShapeMap(['foo' => ['type' => 'string']]);
     $s = $sm->resolve(['shape' => 'foo']);
     $this->assertInstanceOf('Vws\\Api\\Shape', $s);
     $this->assertArrayNotHasKey('shape', $s->toArray());
     $this->assertSame($s, $sm->resolve(['shape' => 'foo']));
 }
 protected function shapeFor(array $definition)
 {
     return isset($definition['shape']) ? $this->shapeMap->resolve($definition) : Shape::create($definition, $this->shapeMap);
 }