@Test(dependsOnMethods = "testCreateMemberGroups")
public void testGroupGetAllContainingGroups() {

    metadata.read(() -> {
        UserGroup groupA = this.provider.findGroupByName("groupA").get();
        UserGroup groupB = this.provider.findGroupByName("groupB").get();
        UserGroup groupC = this.provider.findGroupByName("groupC").get();
        UserGroup groupD = this.provider.findGroupByName("groupD").get();
        assertThat(groupA.getAllContainingGroups()).isEmpty();
        assertThat(groupB.getAllContainingGroups()).hasSize(1).extracting(g -> g.getSystemName()).contains("groupA");
        assertThat(groupC.getAllContainingGroups()).hasSize(1).extracting(g -> g.getSystemName()).contains("groupA");
        assertThat(groupD.getAllContainingGroups()).hasSize(2).extracting(g -> g.getSystemName()).contains("groupC", "groupA");
    });
}