@Test(expected = IllegalArgumentException.class)
public void testLockNonExistingFileSet() throws Exception {

  ZooKeeperManager mockZKManager = mock(ZooKeeperManager.class);
  String fileSet = "test_fileset";
  when(mockZKManager.getFileSetInfo(eq(fileSet))).thenReturn(null);
  TerrapinAdmin.lockFileSet(mockZKManager, fileSet);
}