public function testRelationshipGenerationWithPluralNamingConvention()
{
$from = 'lithium\\tests\\mocks\\data\\MockComments';
$to = 'lithium\\tests\\mocks\\data\\MockPosts';
$from::config(array('meta' => array('connection' => 'mockconn', 'key' => '_id'), 'schema' => new Schema(array('fields' => array('mockPost' => 'id')))));
$to::config(array('meta' => array('connection' => 'mockconn', 'key' => '_id'), 'schema' => new Schema(array('fields' => array('mockComments' => 'id')))));
$result = $this->_db->relationship($from, 'belongsTo', 'MockPosts');
$expected = compact('to', 'from') + array('name' => 'MockPosts', 'type' => 'belongsTo', 'key' => array('mockPost' => '_id'), 'link' => 'key', 'fields' => true, 'fieldName' => 'mockPost', 'constraints' => array(), 'init' => true);
$this->assertEqual($expected, $result->data());
}