AllLedger { public AllLedger(String ledgerName, Boolean isDeemedPositive, String amount, String branchName) { this.ledgerName = ledgerName; this.isDeemedPositive = isDeemedPositive; this.amount = amount; this.branchName = branchName; } AllLedger(String ledgerName, Boolean isDeemedPositive, String amount, String branchName); final Boolean getIsDeemedPositive(); final String getAmount(); final String getBranchName(); final String getLedgerName(); @Override final String toString();  }
@Test public void testAllLedgerTest() { AllLedger allLedger = new AllLedger("ledgerName", false, "234", "branchName"); Assert.assertEquals("false;ledgerName;234;branchName", allLedger.toString()); }