TypeModel typeBoth =
typeModel("both", new TestForm("formatUri", "mimeType"));
TestContentModelInfo model =
contentModel("model", typeModels(typeBoth));
BasicObjectInfo neither =
basicObject("neitherFails",
contentModelRelations(model),
datastreams(new DatastreamInfo("both", null, null)));
BasicObjectInfo mimeOnly =
basicObject("mimeFails",
contentModelRelations(model),
datastreams(new DatastreamInfo("both",
"mimeType",
null)));
BasicObjectInfo fuOnly =
basicObject("fuFails",
contentModelRelations(model),
datastreams(new DatastreamInfo("both",
null,
"formatUri")));
BasicObjectInfo both =
basicObject("bothMatch",
contentModelRelations(model),
datastreams(new DatastreamInfo("both",
"mimeType",
"formatUri")));
BasicObjectInfo wrongMime =
basicObject("mimeMismatch",
contentModelRelations(model),
datastreams(new DatastreamInfo("both",
"wrongMime",
"formatUri")));
BasicObjectInfo wrongFu =
basicObject("fuMismatch",
contentModelRelations(model),
datastreams(new DatastreamInfo("both",
"mime",
"wrongFormatUri")));