IndexVolumeGroupDaoImpl implements IndexVolumeGroupDao { @Override public IndexVolumeGroup update(IndexVolumeGroup indexVolumeGroup) { return genericDao.update(indexVolumeGroup); } @Inject  IndexVolumeGroupDaoImpl(final IndexDbConnProvider indexDbConnProvider); @Override IndexVolumeGroup getOrCreate(final IndexVolumeGroup indexVolumeGroup); @Override IndexVolumeGroup update(IndexVolumeGroup indexVolumeGroup); @Override IndexVolumeGroup get(final int id); @Override IndexVolumeGroup get(final String name); @Override List<String> getNames(); @Override List<IndexVolumeGroup> getAll(); @Override void delete(final String name); @Override void delete(int id);  }
@Test void testUpdate() { final var groupName = TestData.createVolumeGroupName(); final var group = createGroup(groupName); final var newGroupName = TestData.createVolumeGroupName(); final var reloadedGroup = indexVolumeGroupDao.get(group.getId()); reloadedGroup.setName(newGroupName); indexVolumeGroupDao.update(reloadedGroup); final var updatedGroup = indexVolumeGroupDao.get(group.getId()); assertThat(updatedGroup).isNotNull(); assertThat(updatedGroup.getName()).isEqualTo(newGroupName); }