@Test(expected = XmlDocumentReadFailureException.class)
public void testSegmentDocument_Given_Real_Marshaller_Throws_XmlDocumentReadFailureException()
		throws IOException, InvalidXmlDocumentException, AuditException {

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