@Test
public void test() throws Exception {

	AgentTokenWrapper agentToken = getAgentToken(tokenServices);
	
	InputMessage message = new InputMessage();
	
	HashMap<String, String> properties = new HashMap<String, String>();
	properties.put(FunctionMessageHandler.FUNCTION_HANDLER_PACKAGE_KEY + ".id", EMPTY_FILE);
	properties.put(FunctionMessageHandler.FUNCTION_HANDLER_PACKAGE_KEY + ".version", "1");
	
	properties.put(FunctionMessageHandler.FUNCTION_HANDLER_KEY, TestFunctionHandler.class.getName());
	
	message.setProperties(properties);
	
	Input<TestInput> input = getTestInput();
	
	message.setPayload(new ObjectMapper().valueToTree(input));
	
	OutputMessage outputMessage = messageHandlerPool.get(FunctionMessageHandler.class.getName()).handle(agentToken, message);
	Assert.assertEquals("Bonjour", outputMessage.getPayload().get("payload").get("message").asText());
}