context.checking(new Expectations()
{
{
oneOf(serviceActionControllerMock).execute(with(any(ServiceActionContext.class)),
with(any(ServiceAction.class)));
will(returnValue(new TokenInfoResponse(new TokenInfo(null, null, null, 0))));
}
});
sut.getTokenInfo(securityToken, consumerInfo, "serviceName", "tokenName");
context.assertIsSatisfied();