context.checking(new Expectations() {{
oneOf(contact).makeJsonRestCall(with(any(String.class)), with(BuildTypeDetail.class));
will(returnValue(buildTypeDetail()));
allowing(contact).makeJsonRestCall(with(any(String.class)), with(Builds.class));
will(returnValue(new Builds()));
}});
spy.statusOf(digest.iterator().next().id());
context.assertIsSatisfied();
}