@Test
void testCreate() {

    // Given
    final String nodeName = TestData.createNodeName();
    final String path = TestData.createPath();
    final var indexVolumeGroup = createGroup(TestData.createVolumeGroupName());
    // When
    final IndexVolume created = createVolume(nodeName, path, indexVolumeGroup.getId());
    assertThat(created).isNotNull();
    final IndexVolume retrieved = indexVolumeDao.fetch(created.getId()).orElse(null);
    assertThat(Stream.of(created, retrieved)).allSatisfy(i -> {
        assertThat(i.getNodeName()).isEqualTo(nodeName);
        assertThat(i.getPath()).isEqualTo(path);
    });
    indexVolumeDao.delete(retrieved.getId());
    final IndexVolume retrievedAfterDelete = indexVolumeDao.fetch(created.getId()).orElse(null);
    assertThat(retrievedAfterDelete).isNull();
}