@Test
public void testSyncWithCurrent() throws Exception {

  final DistCpOptions options = new DistCpOptions.Builder(
      Collections.singletonList(source), target)
      .withSyncFolder(true)
      .withUseDiff("s1", ".")
      .build();
  context = new DistCpContext(options);
  initData(source);
  initData(target);
  enableAndCreateFirstSnapshot();
  // make changes under source
  changeData(source);
  // do the sync
  sync();
  // make sure the source path is still unchanged
  Assert.assertEquals(source, context.getSourcePaths().get(0));
}