@Test
public void testAddCommunication() {

	String line = "ARC a0_0 FROM test0_0 TO test0_1 TYPE 0";
	String suffix = "_0";
	double period = 0.0;
	Task task0 = new Task("test0_0_0");
	Task task1 = new Task("test0_1_0");
	Application<Task, Dependency> application = new Application<Task, Dependency>();
	application.addVertex(task0);
	application.addVertex(task1);
	ReaderTGFF reader = new ReaderTGFF();
	List<String> in = Arrays.asList("# type    quantity", "0          5", "1          6", "}");
	Iterator<String> it = in.iterator();
	reader.messageSizes = reader.importMessageSizes(it);
	reader.addCommunication(line, suffix, period, application);
	String comm = "a0_0";
	Assert.assertEquals(3, application.getVertexCount());
	Assert.assertNotNull(application.getVertex(comm));
	Assert.assertEquals(2, application.getEdgeCount());
	Assert.assertNotNull(application.getEdge(comm + "_0"));
	Assert.assertNotNull(application.getEdge(comm + "_1"));
}