System.setIn(stream);
// PushbackInputStream processes in reverse order.
for (int i = input.length - 1; i >= 0; i--) {
stream.unread(input[i].getBytes());
}
ShortTxidWaitAvatarShell shell = new ShortTxidWaitAvatarShell(conf);
assertEquals(0, shell.run(new String[] { "-failover" }));
int blocksAfter = blocksInFile();
assertTrue(blocksBefore == blocksAfter);
}