@Test
public void testNotExistingTable() throws Exception {

    class SnapshotArgsTest extends SnapshotArgs {
        public SnapshotArgsTest(String[] args) throws IOException {
            super(args);
        }
        @Override
        public Set<String> tableSet(HBaseAdmin admin) throws IOException {
            Set<String> set = new TreeSet<>();
            set.add("INVALID_TABLE");
            return set;
        }
    }
    String[] argsParam;
    SnapshotArgs args;
    Snapshot app;
    argsParam = new String[]{"localhost", ".*",
            "--" + Args.OPTION_AFTER_FAILURE + "=" + AlertSenderTest.ALERT_SCRIPT};
    args = new SnapshotArgsTest(argsParam);
    app = new Snapshot(admin, args);
    app.run();
}