Test equals on bean with two fields