@Test
public void testEquals() {

  BlueprintConfigEntityPK pk = new BlueprintConfigEntityPK();
  BlueprintConfigEntityPK pk2 = new BlueprintConfigEntityPK();
  pk.setBlueprintName("foo");
  pk.setType("core-site");
  pk2.setBlueprintName("foo");
  pk2.setType("core-site");
  assertEquals(pk, pk2);
  assertEquals(pk2, pk);
  pk.setBlueprintName("foo2");
  assertFalse(pk.equals(pk2));
  assertFalse(pk2.equals(pk));
  pk2.setBlueprintName("foo2");
  assertEquals(pk, pk2);
  assertEquals(pk2, pk);
  pk.setType("other-type");
  assertFalse(pk.equals(pk2));
  assertFalse(pk2.equals(pk));
}