mock object

Add support for more fields.
check that the Java integration tests are still green.