mock object

Add support for more metadata.
check that the Java integration tests are still green.

Related to https://github.com/openmicroscopy/openmicroscopy/pull/3260
good point