package com.sibisoft.faizaniftikhartdd;

public class Money 
{
	protected int amount;
	
	public Money() 
	{
		
	}
	public boolean equals(Object object)
	{
		Money money= (Money) object;
		return amount == money.amount;
	}
}

@@ -219,22 +219,61 @@
 money.amount
+ && getClass().equals(money.getClass())
 ;%0D%0A%09%7D%0D%0A%7D%0D%0A

Add getClass() method to validate equals both same classes which make our equality test case succeed