allowing(artifactStub).getExtension();
will(returnValue(extension));
allowing(artifactStub).getClassifier();
will(returnValue(null));
}});
final Factory artifactSource = context.mock(Factory.class);
context.checking(new Expectations() {{
allowing(artifactSource).create();
will(returnValue(file));
}});
final ResolvedDependency resolvedDependency = context.mock(ResolvedDependency.class);