@Test
public void testEquals() {

    Id id1 = new DefaultId("name").withTag(new BasicTag("k1", "v1")).withTag(
        new BasicTag("k2", "v2"));
    Tag[] tags = new Tag[] { new BasicTag("k2", "v2"), new BasicTag("k1", "v1") };
    Id id2 = new DefaultId("name").withTags(tags);
    System.out.println(id1);
    Assert.assertTrue(id1.equals(id2));
    Assert.assertEquals(id1, id2);
    Assert.assertEquals(id1.hashCode(), id2.hashCode());
}