TransactionType extends Immutable { @Override public String toString() { return "TransactionType [id=" + id + ", transactionTypeName=" + transactionTypeName + ", transactionAmount=" + transactionAmount + ", transactionIsWork=" + transactionIsWork + ", transactionIsWagePayment=" + transactionIsWagePayment + "]"; } TransactionType();  TransactionType(int id, String transactionTypeName, Double transactionAmount, boolean transactionIsWork, boolean transactionIsWagePayment); Integer getId(); String getTransactionTypeName(); void setTransactionTypeName(String transactionTypeName); Double getTransactionAmount(); void setTransactionAmount(Double transactionAmount); boolean isTransactionIsWork(); void setTransactionIsWork(boolean transactionIsWork); boolean isTransactionIsWagePayment(); void setTransactionIsWagePayment(boolean transactionIsWagePayment); @Override String toString();  }
@Test public void testToString() { TransactionType bean = new TransactionType(1, "Vaske", 45.0, true, false); assertThat(bean.toString()).startsWith("TransactionType ["); }