	@Test
	public void testCreateFieldIndexStored() throws Exception{

		
		fieldDescription.setIndex(FieldBuilder.FIELD_INDEX_YES);
		fieldDescription.setStored(FieldBuilder.FIELD_STORE_YES);
		tokenStreams.remove(1);

    expect(filterBuilder.filter(isA(TokenStream.class), isA(Collection.class))).andReturn(tokenStream1);
    replay(filterBuilder);
		
		Collection<Field> fields = fieldBuilder.createFields(tokenStreams, fieldDescription);
    verify(filterBuilder);
    
		assertEquals(4, fields.size());
		Iterator<Field> fieldIterator = fields.iterator();
		Field field1 = fieldIterator.next();
		assertEquals("field1", field1.name());
		assertFalse(field1.isIndexed());
		assertTrue(field1.isStored());
		assertEquals("token1", field1.stringValue());

		Field field2 = fieldIterator.next();
		assertEquals("field1", field2.name());
		assertFalse(field2.isIndexed());
		assertTrue(field2.isStored());
		assertEquals("token2", field2.stringValue());

		Field field3 = fieldIterator.next();
		assertEquals("field1", field3.name());
		assertFalse(field3.isIndexed());
		assertTrue(field3.isStored());
		assertEquals("token3", field3.stringValue());

		Field field4 = fieldIterator.next();
		assertEquals("field1", field4.name());
		assertTrue(field4.isIndexed());
		assertFalse(field4.isStored());
	}