@Test
public void parseLinkTest() throws ValidityException, ParsingException, IOException, ClassNotFoundException,
		InstantiationException, IllegalAccessException, InvocationTargetException, NoSuchMethodException {

	nu.xom.Element eLink = new Builder()
			.build("<link id='l2' source='bus' destination='r2' orientation='UNDIRECTED'/>", "").getRootElement();
	Architecture<Resource, Link> architecture = new Architecture<Resource, Link>();
	Resource r1 = new Resource("bus");
	Resource r2 = new Resource("r2");
	architecture.addVertex(r1);
	architecture.addVertex(r2);
	SpecificationReader r = new SpecificationReader();
	r.parseLink(eLink, architecture);
	Assert.assertTrue(architecture.isNeighbor(r1, r2));
}