mil.dod.th.ose.metatype/test/mil/dod/th/ose/metatype/impl/TestMetaTypeProviderBundleImpl.java
@Test
    public void testGetBundle() throws Exception 
    {
        BundleContext context = mock(BundleContext.class);
        Bundle bundle = mock(Bundle.class);
        when(context.getBundle()).thenReturn(bundle);
        
        MetaTypeProviderBundleImpl sut = new MetaTypeProviderBundleImpl();
        sut.activate(context);
        
        assertThat(sut.getBundle(), is(bundle));
    }
/**
     * Verify bundle returned is the one associated with {@link BundleContext}.
     */
Verify bundle returned is the one associated with  BundleContext.
Verify bundle returned is the one associated with BundleContext .
@Test
    public void testGetBundle() throws Exception 
    {
        BundleContext context = mock(BundleContext.class);
        Bundle bundle = mock(Bundle.class);
        when(context.getBundle()).thenReturn(bundle);
        MetaTypeProviderBundleImpl sut = new MetaTypeProviderBundleImpl();
        sut.activate(context);
        assertThat(sut.getBundle(), is(bundle));
    }
@ Test public void testGetBundle ( ) throws Exception { BundleContext context = mock ( BundleContext . class ) ; Bundle bundle = mock ( Bundle . class ) ; when ( context . getBundle ( ) ) . thenReturn ( bundle ) ; MetaTypeProviderBundleImpl sut = new MetaTypeProviderBundleImpl ( ) ; sut . activate ( context ) ; assertThat ( sut . getBundle ( ) , is ( bundle ) ) ; }
Verify bundle returned is the one associated with {@link BundleContext}.
Verify bundle returned is the one associated with { @link BundleContext } .