@Test(dependsOnMethods = "testAddUsersMembers")
public void testGetGroups() {

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