@Test
public void testSetExistingFileSetInfo() throws Exception {

  when(zk.exists(anyString(), anyBoolean())).thenReturn(mock(Stat.class));
  when(zk.setData(anyString(), any(byte[].class), anyInt())).thenReturn(mock(Stat.class));
  zkManager.setFileSetInfo(FILE_SET, FILE_SET_INFO);
  verify(zk).exists(eq(FILE_SET_PATH), eq(false));
  verify(zk).setData(eq(FILE_SET_PATH), eq(FILE_SET_INFO.toJson()), eq(-1));
}