Testing cordova plugins in an ionic project

I’m trying to write tests in my ionic application to test cordova plugins.

How do you test if a cordova plugin exists with jasmine?

Anders.