package com.github.davidmoten.fsm.example.account;

import java.math.BigDecimal;

public final class Account {

	public final String id;
	public final BigDecimal balance;

	public Account(String id, BigDecimal balance) {
		this.id = id;
		this.balance = balance;
	}
	
}

package com.github.davidmoten.fsm.example.account;

import java.math.BigDecimal;

public final class Account {

	public final String id;
	public final BigDecimal balance;

	public Account(String id, BigDecimal balance) {
		this.id = id;
		this.balance = balance;
	}

	@Override
	public String toString() {
		StringBuilder b = new StringBuilder();
		b.append("Account [id=");
		b.append(id);
		b.append(", balance=");
		b.append(balance);
		b.append("]");
		return b.toString();
	}
	
}

add toString to Account