@Test(expected = DS4PException.class)
public void testSegmentDocument_Given_Real_Marshaller_Throws_DS4PException()
		throws IOException, InvalidOriginalClinicalDocumentException,
		InvalidSegmentedClinicalDocumentException, AuditException {

	// Arrange
	final boolean xdm = true;
	final boolean ecrypt = true;
	final XmlValidationResult xmlValidationResultMock = mock(XmlValidationResult.class);
	when(xmlValidationResultMock.isValid()).thenReturn(true);
	when(xmlValidatorMock.validateWithAllErrors("")).thenReturn(
			xmlValidationResultMock);
	final DocumentSegmentationImpl documentSegmentationWithRealMarshaller = new DocumentSegmentationImpl(
			ruleExecutionServiceClientMock, auditServiceMock,
			documentEditorMock, new SimpleMarshallerImpl(),
			documentRedactorMock, documentTaggerMock,
			documentFactModelExtractorMock,
			embeddedClinicalDocumentExtractorMock,
			new ValueSetServiceImplMock(fileReader),
			additionalMetadataGeneratorForSegmentedClinicalDocumentImplMock);
	ReflectionTestUtils.setField(documentSegmentationWithRealMarshaller,
			"xmlValidator", xmlValidatorMock);
	// Act
	@SuppressWarnings("unused")
	final SegmentDocumentResponse resp = documentSegmentationWithRealMarshaller
			.segmentDocument("", "", false, true, true);
	// Assert
	// expect DS4PException
}