@Test
void testUpdate() {

    // Given
    final var nodeName = TestData.createNodeName();
    final var path = TestData.createPath();
    final var indexVolumeGroup = createGroup(TestData.createVolumeGroupName());
    final var indexVolume = createVolume(nodeName, path, indexVolumeGroup.getId());
    final var newNodeName = TestData.createNodeName();
    final var newPath = TestData.createPath();
    indexVolume.setNodeName(newNodeName);
    indexVolume.setPath(newPath);
    // When
    final var updatedIndexVolume = indexVolumeDao.update(indexVolume);
    // Then
    assertThat(updatedIndexVolume.getNodeName()).isEqualTo(newNodeName);
    assertThat(updatedIndexVolume.getPath()).isEqualTo(newPath);
}