@Test
public void testReserveTimeoutError() {

	FunctionExecutionService f = getFunctionExecutionServiceForGridClientTest(null, null, new AgentCallTimeoutException(functionCallTimeout, "Reserve error", null), null);
	
	FunctionExecutionServiceException e = null;
	try {
		f.getTokenHandle(new HashMap<>(), new HashMap<>(), true, null);
	} catch (FunctionExecutionServiceException e1) {
		e = e1;
	}
	Assert.assertNotNull(e);
	Assert.assertEquals("Timeout after "+functionCallTimeout+"ms while reserving the agent token. You can increase the call timeout by setting 'grid.client.token.reserve.timeout.ms' in step.properties", e.getMessage());
}