BundleContextProvider implements ContextProvider { @Override public void put(final String key, final Object value) { for (int i = 0; i < providers.length; ++i) { providers[i].put(key, value); } } BundleContextProvider(final Collection<ContextProvider> providers); @Override Map<String, String> getMapping(); @Override String get(final String key); @Override void put(final String key, final Object value); @Override void remove(final String key); @Override void clear();  }
@Test public void putValue() { bundle.put("pi", "3.14"); verify(first).put("pi", "3.14"); verify(second).put("pi", "3.14"); }