### Question:
ClusterH2DaoImpl implements ClusterDao { @Override @Transactional public void updateDesc(ClusterEntity clusterEntity) { if(Objects.isNull(clusterEntity)) { throw new IllegalArgumentException("envEntity must not be null"); } clusterJpaRepository.updateEnvDesc(Long.valueOf(clusterEntity.getId()), clusterEntity.getClusterDesc()); }  @Override void insert(ClusterEntity clusterEntity); @Override @Transactional void updateDesc(ClusterEntity clusterEntity); @Override void delete(String cluster); @Override ClusterEntity selectByCluster(String cluster); @Override List<ClusterEntity> selectListAll();  }### Answer:
@Test @Rollback public void updateDesc() { ClusterH2Entity envH2Entity = insertOneData(); ClusterEntity envEntity = new ClusterEntity(); envEntity.setId(String.valueOf(envH2Entity.getId())); envEntity.setClusterDesc("update desc"); clusterDao.updateDesc(envEntity); List<ClusterEntity> envEntities = clusterDao.selectListAll(); Assert.assertNotNull(envEntities); Assert.assertTrue(CollectionUtils.isNotEmpty(envEntities)); ClusterEntity updatedEntity = envEntities.stream().findFirst().get(); Assert.assertEquals("update desc unsuccess", envEntity.getClusterDesc(), updatedEntity.getClusterDesc()); clusterJpaRepository.deleteById(envH2Entity.getId()); }