### Question:
ClusterH2DaoImpl implements ClusterDao { @Override public ClusterEntity selectByCluster(String cluster) { return transferEntity(clusterJpaRepository.findFirstByAndCluster(cluster)); }  @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 public void selectByCluster() { ClusterH2Entity envH2Entity = insertOneData(); ClusterEntity envEntity = clusterDao.selectByCluster(envH2Entity.getCluster()); Assert.assertNotNull(envEntity); assertEqualWithIgnore(envH2Entity, envEntity, "id"); clusterJpaRepository.deleteById(envH2Entity.getId()); }