will(returnValue(projectNamed("myTarget")));
never(contact).makeJsonRestCall(with(any(String.class)), with(BuildTypeDetail.class));
}});
final TargetDigestGroup digest = spy.targetsConstituting(new Feature("myFeatureName", "myEndpoint", new CiServerType("TEAMCITY")));
context.assertIsSatisfied();
context.checking(new Expectations() {{
oneOf(contact).makeJsonRestCall(with(any(String.class)), with(BuildTypeDetail.class));
will(returnValue(buildTypeDetail()));