### Question:
DefaultP2PNetwork implements P2PNetwork { @Override public Optional<EnodeURL> getLocalEnode() { if (!localNode.isReady()) { return Optional.empty(); } return Optional.of(localNode.getPeer().getEnodeURL()); } DefaultP2PNetwork(
      final MutableLocalNode localNode,
      final PeerDiscoveryAgent peerDiscoveryAgent,
      final RlpxAgent rlpxAgent,
      final NodeKey nodeKey,
      final NetworkingConfiguration config,
      final PeerPermissions peerPermissions,
      final NatService natService,
      final MaintainedPeers maintainedPeers,
      final PeerReputationManager reputationManager); static Builder builder(); @Override void start(); @Override void stop(); @Override void awaitStop(); @Override boolean addMaintainConnectionPeer(final Peer peer); @Override boolean removeMaintainedConnectionPeer(final Peer peer); @Override Collection<PeerConnection> getPeers(); @Override Stream<DiscoveryPeer> streamDiscoveredPeers(); @Override CompletableFuture<PeerConnection> connect(final Peer peer); @Override void subscribe(final Capability capability, final MessageCallback callback); @Override void subscribeConnect(final ConnectCallback callback); @Override void subscribeDisconnect(final DisconnectCallback callback); @Override void close(); @Override boolean isListening(); @Override boolean isP2pEnabled(); @Override boolean isDiscoveryEnabled(); @Override Optional<EnodeURL> getLocalEnode();  }### Answer:
@Test public void beforeStartingNetworkEnodeURLShouldNotBePresent() { final P2PNetwork network = network(); Assertions.assertThat(network.getLocalEnode()).isNotPresent(); }