/**
* Creates a metadata object having a cyclic association. The cycle is between
* {@code platform.instrument} and {@code instrument.isMountedOn}.
*/
static DefaultPlatform createCyclicMetadata() {
final DefaultInstrument instrument = new DefaultInstrument();
instrument.setType(new SimpleInternationalString("An instrument type."));
final DefaultPlatform platform = new DefaultPlatform();
platform.setDescription(new SimpleInternationalString("A platform."));
instrument.setMountedOn(platform);
platform.getInstruments().add(instrument);
return platform;
}