	@Test
	public void testFormExtraction()
	{

		IHttpRequest request = mock(IHttpRequest.class);
		when(request.getFormParameterValue(eq("testField"))).thenReturn("test");
		
		FormExtractor extractor = new FormExtractor("testField");
		assertEquals("test", extractor.extractValue(request));
		
		when(request.getFormParameterValue(eq("testField"))).thenReturn(null);
		assertEquals(null, extractor.extractValue(request));
		
		when(request.getFormParameterValue(eq("testField"))).thenReturn("");
		assertEquals(null, extractor.extractValue(request));
	}