@Test
public void testGetBgpSpeakers() throws FileNotFoundException, IOException, ParseException {

	testInitialize();
	BgpSpeakers actualBgpSpeakers = null;
	BgpSpeakers expectedBgpSpeakers = null;
	BgpSpeakerBuilder bgpSpeakerBuilder = new BgpSpeakerBuilder();
	BgpSpeakersBuilder bgpSpeakersBuilder = new BgpSpeakersBuilder();
	InterfaceAddressesBuilder intfAddressBuilder = new InterfaceAddressesBuilder();
	List<InterfaceAddresses> intfAddressesList = new ArrayList<InterfaceAddresses>();
	List<BgpSpeaker> bgpSpeakerList = new ArrayList<BgpSpeaker>();
	JSONArray bgpSpeakers = (JSONArray) jsonObject.get("bgpSpeakers");
	Iterator<JSONObject> bgpIterator = bgpSpeakers.iterator();
	while (bgpIterator.hasNext()) {
		JSONObject bgp = (JSONObject) bgpIterator.next();
		bgpSpeakerBuilder.setSpeakerName((String) bgp.get("name"));
		String attachmentDpid = AtriumUtils.hexDpidStringToOpenFlowDpid((String) bgp.get("attachmentDpid"));
		bgpSpeakerBuilder.setAttachmentDpId(NodeId.getDefaultInstance(attachmentDpid));
		String attachmentPort = (String) bgp.get("attachmentPort");
		bgpSpeakerBuilder.setAttachmentPort(Long.valueOf(attachmentPort));
		String macAddress = (String) bgp.get("macAddress");
		bgpSpeakerBuilder.setMacAddress(MacAddress.getDefaultInstance(macAddress));
		JSONArray intfList = (JSONArray) bgp.get("interfaceAddresses");
		Iterator<JSONObject> intfIterator = intfList.iterator();
		while (intfIterator.hasNext()) {
			JSONObject intfAddress = (JSONObject) intfIterator.next();
			String ipAddress = (String) intfAddress.get("ipAddress");
			intfAddressBuilder.setIpAddress(new IpAddress(Ipv4Address.getDefaultInstance(ipAddress)));
			String interfaceDpid = AtriumUtils
					.hexDpidStringToOpenFlowDpid((String) intfAddress.get("interfaceDpid"));
			String interfacePort = (String) intfAddress.get("interfacePort");
			NodeConnectorId ncId = NodeConnectorId.getDefaultInstance(interfaceDpid + ":" + interfacePort);
			intfAddressBuilder.setOfPortId(ncId);
			intfAddressBuilder.setKey(new InterfaceAddressesKey(ncId));
			intfAddressesList.add(intfAddressBuilder.build());
		}
		bgpSpeakerBuilder.setInterfaceAddresses(intfAddressesList);
		bgpSpeakerList.add(bgpSpeakerBuilder.build());
	}
	bgpSpeakersBuilder.setBgpSpeaker(bgpSpeakerList);
	expectedBgpSpeakers = bgpSpeakersBuilder.build();
	actualBgpSpeakers = ConfigReader.getBgpSpeakers();
	assertEquals(expectedBgpSpeakers, actualBgpSpeakers);
}