@Test
public void testWalkObjectGraphNullReferenceWithException() {

	final Exception exception1 = new Exception();
	try {
		ObjectGraphUtil.walkObjectGraph(
			new NullReference(),
			new ObjectGraphUtil.Visitor() {
				@Override
				public Object visit(Field field, Object target)
					throws Exception {
					throw exception1;
				}
			});
		Assert.fail();
	}
	catch (Exception exception2) {
		Assert.assertSame(exception1, exception2);
	}
}