@Subscribe
	public void onChatMessage(ChatMessage event)
	{
		if (event.getType() != ChatMessageType.SPAM)
		{
			return;
		}

		final String message = event.getMessage();

		if (message.startsWith("You successfully cook")
			|| message.startsWith("You successfully bake")
			|| message.startsWith("You successfully fry")
			|| message.startsWith("You manage to cook")
			|| message.startsWith("You roast a")
			|| message.startsWith("You spit-roast")
			|| message.startsWith("You cook")
			|| message.startsWith("Eventually the Jubbly")
			|| message.startsWith("You half-cook")
			|| message.startsWith("The undead meat is now cooked")
			|| message.startsWith("The undead chicken is now cooked")
			|| message.startsWith("You successfully scramble")
			|| message.startsWith("You dry a piece of meat"))
		{
			if (session == null)
			{
				session = new CookingSession();
			}

			session.updateLastCookingAction();
			session.increaseCookAmount();

		}
		else if (message.startsWith("You accidentally burn")
			|| message.equals("You burn the mushroom in the fire.")
			|| message.startsWith("Unfortunately the Jubbly")
			|| message.startsWith("You accidentally spoil"))
		{
			if (session == null)
			{
				session = new CookingSession();
			}

			session.updateLastCookingAction();
			session.increaseBurnAmount();
		}
	}
@Test
	public void testOnChatMessage()
	{
		for (String message : COOKING_MESSAGES)
		{
			ChatMessage chatMessage = new ChatMessage(null, ChatMessageType.SPAM, "", message, "", 0);
			cookingPlugin.onChatMessage(chatMessage);
		}

		ChatMessage chatMessage = new ChatMessage(null, ChatMessageType.SPAM, "", incenseBurnerMessage, "", 0);
		cookingPlugin.onChatMessage(chatMessage);

		CookingSession cookingSession = cookingPlugin.getSession();
		assertNotNull(cookingSession);
		assertEquals(COOKING_MESSAGES.length, cookingSession.getCookAmount());
		assertEquals(0, cookingSession.getBurnAmount());
	}