@Test
void testUpdate() {

    // Given
    final var groupName = TestData.createVolumeGroupName();
    final var group = createGroup(groupName);
    final var newGroupName = TestData.createVolumeGroupName();
    final var reloadedGroup = indexVolumeGroupDao.get(group.getId());
    // When
    reloadedGroup.setName(newGroupName);
    indexVolumeGroupDao.update(reloadedGroup);
    // Then
    final var updatedGroup = indexVolumeGroupDao.get(group.getId());
    assertThat(updatedGroup).isNotNull();
    assertThat(updatedGroup.getName()).isEqualTo(newGroupName);
}