@Test
  public void testBackupStatusProgressCommand() throws Exception {
    LOG.info("test backup status/progress on a single table with data: command-line");

    List<TableName> tableList = Lists.newArrayList(table1);
    String backupId = fullTableBackup(tableList);
    LOG.info("backup complete");
    assertTrue(checkSucceeded(backupId));
    ByteArrayOutputStream baos = new ByteArrayOutputStream();
    System.setOut(new PrintStream(baos));

    String[] args = new String[] { "describe", backupId };
    int ret = ToolRunner.run(conf1, new BackupDriver(), args);
    assertTrue(ret == 0);
    String responce = baos.toString();
    assertTrue(responce.indexOf(backupId) > 0);
    assertTrue(responce.indexOf("COMPLETE") > 0);

    baos = new ByteArrayOutputStream();
    System.setOut(new PrintStream(baos));

    args = new String[] { "progress", backupId };
    ret = ToolRunner.run(conf1, new BackupDriver(), args);
    assertTrue(ret == 0);
    responce = baos.toString();
    assertTrue(responce.indexOf(backupId) >= 0);
    assertTrue(responce.indexOf("progress") > 0);
    assertTrue(responce.indexOf("100") > 0);
  }
Verify that full backup is created on a single table with data correctly.
@throws Exception if doing the backup or an operation on the tables fails
hbase-backup/src/test/java/org/apache/hadoop/hbase/backup/TestBackupStatusProgress.java