public void addPeerToSpeaker(String speakerName, IpAddress peerAddress) {
        JsonNode speakersNode = object.get(SPEAKERS);
        speakersNode.forEach(jsonNode -> {
            if (jsonNode.hasNonNull(NAME) &&
                    jsonNode.get(NAME).asText().equals(speakerName)) {
                ArrayNode peersNode = (ArrayNode) jsonNode.get(PEERS);
                for (int i = 0; i < peersNode.size(); i++) {
                    if (peersNode.get(i).asText().equals(peerAddress.toString())) {
                        return; // Peer already exists.
                    }
                }
                peersNode.add(peerAddress.toString());
            }
        });
    }
@Test
    public void testAddPeerToSpeaker() throws Exception {
        int initialSize = bgpConfig.getSpeakerWithName("bgp1").peers().size();
        bgpConfig.addPeerToSpeaker("bgp1", IP4);

        assertEquals(initialSize + 1, bgpConfig.getSpeakerWithName("bgp1").peers().size());
    }