@Test
public void testRemoveRole() {

    metadata.commit(() -> {
        createRole("feedEditor", "Editor", "Can edit feeds", FeedAccessControl.EDIT_DETAILS, FeedAccessControl.ENABLE_DISABLE, FeedAccessControl.EXPORT);
    }, MetadataAccess.SERVICE);
    
    boolean deleted = metadata.commit(() -> {
        return this.provider.removeRole(SecurityRole.FEED, "feedEditor");
    }, MetadataAccess.SERVICE);
    
    assertThat(deleted).isTrue();
    
    metadata.read(() -> { 
        Optional<SecurityRole> option = this.provider.getRole(SecurityRole.FEED, "feedEditor");
        
        assertThat(option).isNotNull();
        assertThat(option.isPresent()).isFalse();
    }, MetadataAccess.SERVICE);
    
    deleted = metadata.commit(() -> {
        return this.provider.removeRole(SecurityRole.FEED, "feedEditor");
    }, MetadataAccess.SERVICE);
    
    assertThat(deleted).isFalse();
}