@Test
public void testEquals() {

    LOG.info("testEquals");
    final Money s = y.withCurrency(x1).withAmount(x2);
    final Money t = x.withCurrency(y1).withAmount(y2);
    Assert.assertTrue(x.equals(s));
    Assert.assertTrue(y.equals(t));
    Assert.assertFalse(x.equals(t));
    Assert.assertFalse(y.equals(s));
}