unconvert() public method

Unconverts recursively the given objects to persistable objects on MongoDB Example: converts Type\ObjectID to MongoDB\BSON\ObjectID.
public unconvert ( array $attributes ) : array
$attributes array Array to convert.
return array
 public function testUnconvertShouldConvertObjectsToMongoTypes()
 {
     $converter = m::mock(Converter::class);
     $serializer = new Serializer($converter);
     $attributes = ['awsome', 'attrs'];
     $replaced = ['some', 'attributes'];
     $converter->shouldReceive('toMongoTypes')->with($attributes)->once()->andReturn($replaced);
     $this->assertEquals($replaced, $serializer->unconvert($attributes));
 }