public PluginRoleConfig getPluginRole(CaseInsensitiveString roleName) {
        for (PluginRoleConfig pluginRoleConfig : rolesConfig.getPluginRoleConfigs()) {
            if (pluginRoleConfig.getName().equals(roleName)) {
                return pluginRoleConfig;
            }
        }
        return null;
    }
@Test
    public void getPluginRole_shouldReturnNullInAbsenceOfPluginRoleForTheGivenName() throws Exception {
        SecurityConfig securityConfig = new SecurityConfig();

        assertNull(securityConfig.getPluginRole(new CaseInsensitiveString("foo")));
    }