### Question:
OpaBundle implements ConfiguredBundle<T> { public static ProviderBuilder builder() { return new Builder<>(); } private  OpaBundle(
      OpaConfigProvider<T> configProvider,
      Map<String, OpaInputExtension<?>> inputExtensions,
      Tracer tracer); static ProviderBuilder builder(); @VisibleForTesting @SuppressWarnings("java:S1452") // allow generic wildcard type Map<String, OpaInputExtension<?>> getInputExtensions(); @Override void initialize(Bootstrap<?> bootstrap); @Override void run(T configuration, Environment environment);  }### Answer:
@Test public void shouldThrowExceptionIfNamespaceCollidesWithOriginalProperty() { assertThatThrownBy( () -> OpaBundle.builder() .withOpaConfigProvider(TestConfiguration::getOpa) .withInputExtension("path", new NullInputExtension())) .isInstanceOf(HiddenOriginalPropertyException.class) .hasMessageContaining("NullInputExtension") .hasMessageContaining("\"path\""); }
@Test public void shouldThrowExceptionIfNamespaceCollidesWithOtherExtension() { assertThatThrownBy( () -> OpaBundle.builder() .withOpaConfigProvider(TestConfiguration::getOpa) .withInputExtension("myExtension", OpaInputHeadersExtension.builder().build()) .withInputExtension("myExtension", new NullInputExtension())) .isInstanceOf(DuplicatePropertyException.class) .hasMessageContaining("OpaInputHeadersExtension") .hasMessageContaining("NullInputExtension") .hasMessageContaining("\"myExtension\""); }