mock object

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