BundleContextProvider implements ContextProvider { @Override public void clear() { for (int i = 0; i < providers.length; ++i) { providers[i].clear(); } } 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 clear() { bundle.clear(); verify(first).clear(); verify(second).clear(); }