TallyMessage { protected TallyMessage(final VoucherType voucherType, final Date voucherDate, final List<AllLedger> allLedgers) { super(); this.voucherType = voucherType; this.allLedgers = allLedgers; this.voucherDate = voucherDate; } protected  TallyMessage(final VoucherType voucherType, final Date voucherDate, final List<AllLedger> allLedgers); final VoucherType getVoucherType(); final List<AllLedger> getAllLedgers(); final Date getVoucherDate(); @Override final String toString();  }
@Test public void testTallyMessage() { AllLedger allLedger = new AllLedger("ledgerName", false, "234", "branchName"); List<AllLedger> list = new ArrayList<AllLedger>(); list.add(allLedger); TallyMessage tallyMessage = new TallyMessage(VoucherType.JOURNAL, new Date(), list); Assert.assertNotNull(tallyMessage.toString()); }