when(sensorContext.getResource(foo)).thenReturn(foo);
when(sensorContext.getResource(bar)).thenReturn(bar);
Dependency parentDep = new Dependency(src1, src2).setWeight(4);
when(sonarIndex.getEdge(src1, src2)).thenReturn(parentDep);
adaptor.store(new DefaultDependency()
.from(new DefaultInputFile("foo", "src1/Foo.java").setType(Type.MAIN))
.to(new DefaultInputFile("foo", "src2/Bar.java").setType(Type.MAIN))
.weight(3));
ArgumentCaptor<Dependency> argumentCaptor = ArgumentCaptor.forClass(Dependency.class);