### Question:
PeerPermissionsDenylist extends PeerPermissions { public static PeerPermissionsDenylist create() { return new PeerPermissionsDenylist(OptionalInt.empty()); } private  PeerPermissionsDenylist(final int initialCapacity, final OptionalInt maxSize); private  PeerPermissionsDenylist(final OptionalInt maxSize); static PeerPermissionsDenylist create(); static PeerPermissionsDenylist create(final int maxSize); @Override boolean isPermitted(final Peer localNode, final Peer remotePeer, final Action action); void add(final Peer peer); void remove(final Peer peer); void add(final Bytes peerId); void remove(final Bytes peerId); @Override void close();  }### Answer:
@Test public void createWithUnlimitedCapacity() { final PeerPermissionsDenylist blacklist = PeerPermissionsDenylist.create(); final int peerCount = 200; final List<Peer> peers = Stream.generate(this::createPeer).limit(peerCount).collect(Collectors.toList()); peers.forEach(p -> checkPermissions(blacklist, p, true)); peers.forEach(blacklist::add); peers.forEach(p -> checkPermissions(blacklist, p, false)); peers.forEach(blacklist::remove); peers.forEach(p -> checkPermissions(blacklist, p, true)); }