public function testShouldParseToArrayGettingObjectAttributes()
{
// Arrange
$schema = m::mock(Schema::class);
$schemaMapper = new SchemaMapper($schema);
$object = (object) ['foo' => 'bar', 'name' => 'wilson'];
// Assert
$this->assertEquals(['foo' => 'bar', 'name' => 'wilson'], $this->callProtected($schemaMapper, 'parseToArray', [$object]));
}