SecurityProviderImpl implements SecurityProvider, WhiteboardAware { @SuppressWarnings("UnusedDeclaration") protected void unbindAuthenticationConfiguration(AuthenticationConfiguration authenticationConfiguration) { this.authenticationConfiguration = null; } SecurityProviderImpl();  SecurityProviderImpl(@NotNull ConfigurationParameters configuration); @Override void setWhiteboard(@NotNull Whiteboard whiteboard); @Override Whiteboard getWhiteboard(); @NotNull @Override ConfigurationParameters getParameters(@Nullable String name); @NotNull @Override Iterable<? extends SecurityConfiguration> getConfigurations(); @SuppressWarnings("unchecked") @NotNull @Override T getConfiguration(@NotNull Class<T> configClass);  }
@Test public void testUnBindAuthenticationConfiguration() { AuthenticationConfiguration ac = Mockito.mock(AuthenticationConfiguration.class); securityProvider.bindAuthenticationConfiguration(ac); securityProvider.unbindAuthenticationConfiguration(ac); assertNull(securityProvider.getConfiguration(AuthenticationConfiguration.class)); for (SecurityConfiguration sc : securityProvider.getConfigurations()) { if (sc instanceof AuthenticationConfiguration) { fail(); } } }