private static Object getExpectationFromBlock(String marker, List params)
throws IllegalStateException
{
Map map = (Map) expectations.get(0);
Wrapper key = new Wrapper(marker, params);
List lst = (List) map.get(key);
if ((lst == null) || (lst.size() == 0))
{
throw unexpectedCall(marker, params);