### Question:
BLSPublicKey implements SimpleOffsetSerializable { public static BLSPublicKey random(int seed) { return BLSKeyPair.random(seed).getPublicKey(); } BLSPublicKey(BLSSecretKey secretKey);   BLSPublicKey(PublicKey publicKey);   BLSPublicKey(Bytes48 bytesCompressed); private  BLSPublicKey(Supplier<PublicKey> publicKey, Supplier<Bytes48> bytesCompressed); static BLSPublicKey random(int seed); static BLSPublicKey empty(); static BLSPublicKey aggregate(List<BLSPublicKey> publicKeys); @Override int getSSZFieldCount(); @Override List<Bytes> get_fixed_parts(); static BLSPublicKey fromSSZBytes(Bytes bytes); static BLSPublicKey fromBytesCompressed(Bytes48 bytes); static BLSPublicKey fromBytesCompressedValidate(Bytes48 bytes); Bytes toSSZBytes(); Bytes48 toBytesCompressed(); String toAbbreviatedString(); @Override String toString(); @Override boolean equals(Object obj); @Override int hashCode(); static final int SSZ_FIELD_COUNT; static final int SSZ_BLS_PUBKEY_SIZE; }### Answer:
@Test void succeedsWhenEqualsReturnsTrueForTheSamePublicKey() { BLSPublicKey publicKey = BLSPublicKey.random(42); assertEquals(publicKey, publicKey); }
@Test void succeedsWhenEqualsReturnsFalseForDifferentPublicKeys() { BLSPublicKey publicKey1 = BLSPublicKey.random(1); BLSPublicKey publicKey2 = BLSPublicKey.random(2); assertNotEquals(publicKey1, publicKey2); }