@SuppressWarnings("unchecked")
@Test
public void shouldAccessFieldOfStreamArray() {

	final ArrayProjection arrayProjection = new ArrayProjection(new ObjectAccess("fieldName"));
	final IJsonNode result = arrayProjection.evaluate(
		createStreamArrayNode(createObjectNode("fieldName", 1), createObjectNode("fieldName", 2),
			createObjectNode("fieldName", 3)));
	Assert.assertFalse(result instanceof IArrayNode);
	Assert.assertTrue(result instanceof IStreamNode);
	AssertUtil.assertIteratorEquals(createArrayNode(1, 2, 3).iterator(), ((Iterable<IJsonNode>) result).iterator());
}