@Test public void testWrapperWithKaraf() { final FeaturesService mockFeatures = mock(FeaturesService.class); doNothing().when(mockFeatures).registerListener(any(DeploymentListener.class)); doReturn(mockFeatures).when(bundleContext).getService(mockRef); doReturn(mockRef).when(bundleContext).getServiceReference(FeaturesService.class); final YangModuleInfoRegistry wrapped = KarafFeaturesSupport.wrap(bundleContext, infoRegistry); assertThat(wrapped, instanceOf(KarafYangModuleInfoRegistry.class)); }
static YangModuleInfoRegistry wrap(final BundleContext ctx, final RegularYangModuleInfoRegistry regular) { return WRAPPER.wrap(ctx, regular); }
KarafFeaturesSupport { static YangModuleInfoRegistry wrap(final BundleContext ctx, final RegularYangModuleInfoRegistry regular) { return WRAPPER.wrap(ctx, regular); } }
KarafFeaturesSupport { static YangModuleInfoRegistry wrap(final BundleContext ctx, final RegularYangModuleInfoRegistry regular) { return WRAPPER.wrap(ctx, regular); } private  KarafFeaturesSupport(); }
KarafFeaturesSupport { static YangModuleInfoRegistry wrap(final BundleContext ctx, final RegularYangModuleInfoRegistry regular) { return WRAPPER.wrap(ctx, regular); } private  KarafFeaturesSupport();  }
KarafFeaturesSupport { static YangModuleInfoRegistry wrap(final BundleContext ctx, final RegularYangModuleInfoRegistry regular) { return WRAPPER.wrap(ctx, regular); } private  KarafFeaturesSupport();   }