@Test
public void testConfirmFileSetDeletion() {

  ByteArrayInputStream inputStream = new ByteArrayInputStream("y\n".getBytes());
  assertTrue(TerrapinAdmin.confirmFileSetDeletion("test_fileset", inputStream));
  inputStream = new ByteArrayInputStream(new byte[0]);
  assertFalse(TerrapinAdmin.confirmFileSetDeletion("test_fileset", inputStream));
  inputStream = new ByteArrayInputStream("other input".getBytes());
  assertFalse(TerrapinAdmin.confirmFileSetDeletion("test_fileset", inputStream));
}