public function testAttributesInheritanceWithObject()
{
$expected = array('id' => array('type' => 'id'), 'title' => array('type' => 'string', 'null' => false), 'body' => array('type' => 'text', 'null' => false));
$schema = new Schema(array('fields' => $expected));
MockSubProduct::config(compact('schema'));
$result = MockSubProduct::schema();
$this->assertEqual($expected, $result->fields());
}