@Test
public void copyWithLinks() {

	Application<Task, Dependency> app = new Application<Task, Dependency>();
	Architecture<Resource, Link> arch = new Architecture<Resource, Link>();
	Resource resource1 = new Resource("r1");
	Resource resource2 = new Resource("r2");
	Link link = new Link("l");
	arch.addVertex(resource1);
	arch.addVertex(resource2);
	arch.addEdge(link, resource1, resource2);
	Mappings<Task, Resource> mappings = new Mappings<Task, Resource>();
	Specification spec = new Specification(app, arch, mappings);
	Specification spec2 = Models.copy(spec);
	Assert.assertEquals(2, spec2.getArchitecture().getVertexCount());
	Assert.assertTrue(spec2.getArchitecture().isNeighbor(resource1, resource2));
}