@Test
public void shouldConfigureAnonymousByDefault() {

    RepositoryConfiguration config = new RepositoryConfiguration("repoName");
    Security security = config.getSecurity();
    AnonymousSecurity anon = security.getAnonymous();
    assertThat(anon, is(notNullValue()));
    assertThat(anon.getAnonymousUsername(), is(RepositoryConfiguration.Default.ANONYMOUS_USERNAME));
    assertThat(anon.getAnonymousRoles(), is(RepositoryConfiguration.Default.ANONYMOUS_ROLES));
}