final ProjectInternal projectDummy = context.mock(ProjectInternal.class);
context.checking(new Expectations() {{
allowing(projectFinder).getProject((String) mapNotation.get("path"));
will(returnValue(projectDummy));
}});
DefaultProjectDependency projectDependency = (DefaultProjectDependency)
projectDependencyFactory.createProjectDependencyFromMap(projectFinder, mapNotation);
assertThat((ProjectInternal) projectDependency.getDependencyProject(), equalTo(projectDummy));
assertThat(projectDependency.getConfiguration(), equalTo(mapNotation.get("configuration")));
assertThat(projectDependency.isTransitive(), equalTo(expectedTransitive));
}