MaintenanceDocumentForm form = createMockMaintenanceDocForm();
Maintainable newMaintainableObject = form.getDocument().getNewMaintainableObject();
when(newMaintainableObject.getDataObject()).thenReturn(new CourtCase());
String comment = String.format(commentTemplate, expectedCourtCaseScopeCount, dataObjectName, "court case", expectedEmptyScopeCount);
assertEquals(comment, expectedCourtCaseScopeCount + expectedEmptyScopeCount, kv.getKeyValues(form).size());
when(newMaintainableObject.getDataObject()).thenReturn(new LandCase());
comment = String.format(commentTemplate, expectedLandCaseScopeCount, dataObjectName, "land case", expectedEmptyScopeCount);