public UpsertConfig(Mode mode) {
    _mode = mode;
  }
@Test
  public void testUpsertConfig() {
    UpsertConfig upsertConfig1 = new UpsertConfig(UpsertConfig.Mode.FULL);
    assertEquals(upsertConfig1.getMode(), UpsertConfig.Mode.FULL);

    upsertConfig1.setComparisonColumn("comparison");
    assertEquals(upsertConfig1.getComparisonColumns(), Collections.singletonList("comparison"));

    upsertConfig1.setHashFunction(HashFunction.MURMUR3);
    assertEquals(upsertConfig1.getHashFunction(), HashFunction.MURMUR3);

    UpsertConfig upsertConfig2 = new UpsertConfig(UpsertConfig.Mode.PARTIAL);
    Map<String, UpsertConfig.Strategy> partialUpsertStratgies = new HashMap<>();
    partialUpsertStratgies.put("myCol", UpsertConfig.Strategy.INCREMENT);
    upsertConfig2.setPartialUpsertStrategies(partialUpsertStratgies);
    upsertConfig2.setDefaultPartialUpsertStrategy(UpsertConfig.Strategy.OVERWRITE);
    assertEquals(upsertConfig2.getPartialUpsertStrategies(), partialUpsertStratgies);
  }