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

	nu.xom.Element eLink = new Builder()
			.build("<dependency id='d1' source='t1' destination='c1' orientation='DIRECTED'/>", "")
			.getRootElement();
	Application<Task, Dependency> application = new Application<Task, Dependency>();
	Task d1 = new Task("t1");
	Task d2 = new Task("c1");
	application.addVertex(d1);
	application.addVertex(d2);
	SpecificationReader r = new SpecificationReader();
	r.parseDependency(eLink, application);
	Assert.assertTrue(application.isSuccessor(d1, d2));
}