@Test
public void testGetInvalidTxSize() throws Exception {

  Transaction tx1 = txClient.startShort();
  txClient.startLong();
  txClient.invalidate(tx1.getTransactionId());
  ByteArrayOutputStream out = new ByteArrayOutputStream();
  ByteArrayOutputStream err = new ByteArrayOutputStream();
  TransactionAdmin txAdmin = new TransactionAdmin(new PrintStream(out), new PrintStream(err));
  int status = txAdmin.doMain(new String[]{"--get-invalid-tx-size"}, conf);
  Assert.assertEquals(0, status);
  //noinspection ConstantConditions
  Assert.assertTrue(out.toString("UTF-8").contains("Invalid list size: 1\n"));
}