### Question:
ResourceModelMetaDataRegistrar { public synchronized void removeMetadataForModelsIn(Bundle bundle) { if (bundle == null) { throw new IllegalArgumentException("method parameter bundle must not be null"); } Map<Class<?>, ResourceModelMetadataHolder> newCache = copyCache(); Iterator<Map.Entry<Class<?>, ResourceModelMetadataHolder>> it = newCache.entrySet().iterator(); while (it.hasNext()) { OsgiModelSource<?> source = it.next().getValue().source; if (source.getBundleId() == bundle.getBundleId()) { it.remove(); } } this.cache = newCache; }  Collection<ResourceModelMetaData> get(); ResourceModelMetaData get(Class<?> modelType); synchronized void register(OsgiModelSource<?> modelSource); synchronized void removeMetadataForModelsIn(Bundle bundle);  }### Answer:
@Test(expected = IllegalArgumentException.class) public void testNullValuesAreNotToleratedForBundleDeRegistration() { this.testee.removeMetadataForModelsIn(null); }