private GlusterVolumeSnapshotConfig insertTestConfig() {
    GlusterVolumeSnapshotConfig config = new GlusterVolumeSnapshotConfig();
    config.setClusterId(CLUSTER_ID);
    config.setVolumeId(VOLUME_ID);
    config.setParamName(NEW_PARAM_NAME);
    config.setParamValue("new_value");
    dao.save(config);

    return config;
  }
  @Test
  public void testUpdateByClusterIdAndName() {
    GlusterVolumeSnapshotConfig config = dao.getConfigByClusterIdAndName(CLUSTER_ID, PARAM_NAME_3);

    assertNotNull(config);
    assertEquals(config.getParamValue(), "value3");

    dao.updateConfigByClusterIdAndName(CLUSTER_ID, PARAM_NAME_3, "new_value");

    GlusterVolumeSnapshotConfig modifiedConfig =
        dao.getConfigByClusterIdAndName(CLUSTER_ID, PARAM_NAME_3);
    assertNotNull(modifiedConfig);
    assertEquals(modifiedConfig.getParamValue(), "new_value");
  }