@Test(dependsOnMethods = "testAdminGetAvailable")
public void testAdminGetAllowed() throws Exception {

    this.metadata.read(() -> {
        Optional<AllowedActions> option = this.provider.getAllowedActions(AllowedActions.SERVICES);
        assertThat(option.isPresent()).isTrue();
        AllowedActions actions = option.get(); // Throws exception on failure
        actions.checkPermission(TestSecurityConfig.EXPORT_FEEDS);
    }, TestSecurityConfig.ADMIN);
}