Mock BundleContext using Junit5
Hi All,
I have a generic method which is used for rendering a service reference.

Can you guide me how can I create a Junit test method for the same?
When trying to mock BundleContext getting error as shown below:
Cannot invoke "org.osgi.framework.Bundle.getBundleContext()" because the return value of "org.osgi.framework.FrameworkUtil.getBundle(java.lang.Class)" is null
@arunpatidar @rohangarg @mayursatav @rawvarun @aanchal-sikka @manvisharma @pulkit_jain_ @joerghoh @kautuk_sahni