We Have an OSGI Budle with java API exposed only.

The question is how to write an automation Jbehave test to verify functionality of The OSGI Bundle.
Other question, how to test it if a Rest API provided (in all probability there wont be REST, but i would like to get acquainted with the approach)
Im new in OSGI technologies as well as BDD, So thanks in advance for any help.