### Question:
PendingFederation { @Override public String toString() { return String.format("%d signatures pending federation (%s)", publicKeys.size(), isComplete() ? "complete" : "incomplete"); } PendingFederation(List<UldECKey> publicKeys); List<UldECKey> getPublicKeys(); boolean isComplete(); PendingFederation addPublicKey(UldECKey key); Federation buildFederation(Instant creationTime, long blockNumber, NetworkParameters uldParams); @Override String toString(); @Override boolean equals(Object other); Keccak256 getHash(); @Override int hashCode();  }### Answer:
@Test public void testToString() { Assert.assertEquals("6 signatures pending federation (complete)", pendingFederation.toString()); PendingFederation otherPendingFederation = new PendingFederation( Arrays.asList(new UldECKey[]{ UldECKey.fromPrivate(BigInteger.valueOf(100)), }) ); Assert.assertEquals("1 signatures pending federation (incomplete)", otherPendingFederation.toString()); }