OpenSecurityProvider implements SecurityProvider { @NotNull @Override public Iterable<? extends SecurityConfiguration> getConfigurations() { return ImmutableList.of(new OpenAuthenticationConfiguration(), new OpenAuthorizationConfiguration()); }  @NotNull @Override ConfigurationParameters getParameters(@Nullable String name); @NotNull @Override Iterable<? extends SecurityConfiguration> getConfigurations(); @NotNull @Override T getConfiguration(@NotNull Class<T> configClass);  }
@Test public void testGetConfigurations() { Iterable<? extends SecurityConfiguration> configurations = securityProvider.getConfigurations(); assertEquals(2, Iterables.size(configurations)); }