public function testEmptyArrayAsDocument()
{
$schema = new Schema(array('fields' => array('_id' => array('type' => 'id'), 'accounts' => array('type' => 'object', 'array' => true), 'accounts.name' => array('type' => 'string'))));
$data = array('_id' => '4c8f86167675abfabd970300', 'accounts' => array(array()));
$model = $this->_model;
$document = new Document(compact('model', 'schema', 'data'));
$this->assertInstanceOf('lithium\\data\\entity\\Document', $document->accounts[0]);
}