@Test(expected = DS4PException.class)
public void testCleanUpGeneratedEntryIds_Throws_Exception2()
		throws Exception {

	// Arrange
	final String c32WithGeneratedEntryIds = "someDocument";
	final Document documentMock = mock(Document.class);
	final NodeList nodeListMock = mock(NodeList.class);
	when(documentXmlConverterSpy.loadDocument(c32WithGeneratedEntryIds))
			.thenReturn(documentMock);
	when(
			documentAccessorMock.getNodeList(documentMock,
					"//hl7:generatedEntryId")).thenReturn(nodeListMock);
	when(nodeListMock.getLength()).thenReturn(0);
	doThrow(Exception.class).when(documentXmlConverterSpy)
			.convertXmlDocToString(documentMock);
	// Act
	documentRedactor.cleanUpGeneratedEntryIds(c32WithGeneratedEntryIds);
}