public function testPopulateWithClass()
 {
     $values = ['Name' => 'the name', 'Property' => ['Name' => 'property name']];
     $resource = new Resource();
     $resource->populate($values);
     $this->assertInstanceOf('iMoneza\\Data\\Property', $resource->getProperty());
     $this->assertEquals('property name', $resource->getProperty()->getName());
     $this->assertEquals('the name', $resource->getName());
 }