### Question:
AggregateGossipManager { public void onNewAggregate(final ValidateableAttestation validateableAttestation) { if (!validateableAttestation.isAggregate() || !validateableAttestation.markGossiped()) { return; } validator.addSeenAggregate(validateableAttestation); final Bytes data = gossipEncoding.encode(validateableAttestation.getSignedAggregateAndProof()); channel.gossip(data); } AggregateGossipManager(
      final AsyncRunner asyncRunner,
      final GossipNetwork gossipNetwork,
      final GossipEncoding gossipEncoding,
      final ForkInfo forkInfo,
      final SignedAggregateAndProofValidator validator,
      final GossipedOperationConsumer<ValidateableAttestation> gossipedAttestationConsumer); void onNewAggregate(final ValidateableAttestation validateableAttestation); void shutdown();  }### Answer:
@Test public void onNewAggregate() { final SignedAggregateAndProof aggregate = dataStructureUtil.randomSignedAggregateAndProof(); final Bytes serialized = gossipEncoding.encode(aggregate); gossipManager.onNewAggregate(ValidateableAttestation.fromSignedAggregate(aggregate)); verify(topicChannel).gossip(serialized); }