@Override
  public boolean equals(Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    WorkerIdentity that = (WorkerIdentity) o;
    return mVersion == that.mVersion
        && Arrays.equals(mId, that.mId);
  }
@Test
  public void testEquals() {
    WorkerIdentity identity1 = new WorkerIdentity(new byte[]{0x1}, 2);
    WorkerIdentity identity2 = new WorkerIdentity(new byte[]{0x1}, 2);
    assertEquals(identity1, identity2);
  }