             targetName : 'JCredential'
             sourceName : 'JAccount'
 
-          Relationship.one options, (err, relationship) ->
-            expect(err).to.not.exist
-            expect(relationship).to.exist
+          expectRelation.toExist options, (relationship) ->
             expect(relationship.sourceId).to.be.deep.equal anotherAccount._id
             queue.next()
 

              targetName : 'JCredentialData'
              sourceName : 'JCredential'

            Relationship.one options, (err, relationship) ->
              expect(err).to.not.exist
              expect(relationship).to.exist
              queue.next()

          -> done()

JCredential      = require './credential'
JCredentialData  = require './credentialdata'
{ daisy
  expect
  expectRelation
  withDummyClient
  withConvertedUser
  expectAccessDenied
