@Test public void getBundlesNewContext() throws Exception { when(this.mockContextComponentManagerProvider.get()).thenReturn(this.mocker); TranslationBundle mockTranslationBundle = this.mocker.registerMockComponent(TranslationBundle.class); Collection<TranslationBundle> bundles = this.mocker.getComponentUnderTest().getBundles(); assertNotNull(this.mockExecutionContext.getProperty(DefaultTranslationBundleContext.CKEY_BUNDLES)); assertEquals(1, bundles.size()); assertEquals(mockTranslationBundle, bundles.iterator().next()); }
@Override public Collection<TranslationBundle> getBundles() { return getCurrentBundlesInternal(); }
DefaultTranslationBundleContext implements TranslationBundleContext { @Override public Collection<TranslationBundle> getBundles() { return getCurrentBundlesInternal(); } }
DefaultTranslationBundleContext implements TranslationBundleContext { @Override public Collection<TranslationBundle> getBundles() { return getCurrentBundlesInternal(); }  }
DefaultTranslationBundleContext implements TranslationBundleContext { @Override public Collection<TranslationBundle> getBundles() { return getCurrentBundlesInternal(); }  @Override Collection<TranslationBundle> getBundles(); @Override void addBundle(TranslationBundle bundle); }
DefaultTranslationBundleContext implements TranslationBundleContext { @Override public Collection<TranslationBundle> getBundles() { return getCurrentBundlesInternal(); }  @Override Collection<TranslationBundle> getBundles(); @Override void addBundle(TranslationBundle bundle); static final String CKEY_BUNDLES; }