### Question:
IndexVolumeDaoImpl implements IndexVolumeDao { @Override public boolean delete(final int id) { return genericDao.delete(id); } @Inject  IndexVolumeDaoImpl(final IndexDbConnProvider indexDbConnProvider,
                       final ExpressionMapperFactory expressionMapperFactory); @Override IndexVolume create(final IndexVolume indexVolume); @Override IndexVolume update(IndexVolume indexVolume); @Override Optional<IndexVolume> fetch(final int id); @Override boolean delete(final int id); @Override List<IndexVolume> getAll(); @Override List<IndexVolume> getVolumesInGroupOnNode(final String groupName, final String nodeName); @Override List<IndexVolume> getVolumesInGroup(final String groupName); @Override void updateVolumeState(final int id,
                                  final Long updateTimeMs,
                                  final Long bytesUsed,
                                  final Long bytesFree,
                                  final Long bytesTotal); @Override ResultPage<IndexVolume> find(final ExpressionCriteria criteria);  }### Answer:
@Test void testDelete() { final var nodeName = TestData.createNodeName(); final var path = TestData.createPath(); final var indexVolumeGroup = createGroup(TestData.createVolumeGroupName()); final var indexVolume = createVolume(nodeName, path, indexVolumeGroup.getId()); indexVolumeDao.delete(indexVolume.getId()); final var deletedVolumeOptional = indexVolumeDao.fetch(indexVolume.getId()); assertThat(deletedVolumeOptional.isPresent()).isFalse(); }