final TeamCitySpy spy = new TeamCitySpy("myEndpoint", detective, contact);
context.checking(new Expectations() {{
oneOf(contact).makeJsonRestCall(with(Matchers.startsWith("myEndpoint/guestAuth")), with(BuildTypes.class));
will(returnValue(new BuildTypes()));
}});
spy.targetsConstituting(new Feature("", "myEndpoint", new CiServerType("TEAMCITY")));
context.assertIsSatisfied();