Updated BeanFieldTest.java with a mocking example.