@Test
public void testDeleteDocuments() throws EhrException_Exception,
		SpiritAdapterException {

	// Arrange
	FolderClientDto folderMock = mock(FolderClientDto.class);
	EhrPatientClientDto patientMock = mock(EhrPatientClientDto.class);
	SpiritAdapterImpl spy = spy(sat);
	List<DocumentClientDto> documentList = new LinkedList<DocumentClientDto>();
	DocumentClientDto docMock1 = mock(DocumentClientDto.class);
	DocumentClientDto docMock2 = mock(DocumentClientDto.class);
	documentList.add(docMock1);
	documentList.add(docMock2);
	XdsSrcSubmitRsp responseMock1 = mock(XdsSrcSubmitRsp.class);
	when(responseMock1.getStateID()).thenReturn(stateId);
	XdsSrcSubmitRsp responseMock2 = mock(XdsSrcSubmitRsp.class);
	when(responseMock2.getStateID()).thenReturn(stateId);
	doReturn(responseMock1).when(spy).deleteDocument(folderMock, docMock1,
			patientMock, stateId);
	doReturn(responseMock2).when(spy).deleteDocument(folderMock, docMock2,
			patientMock, stateId);
	// Act
	String actualResponse = spy.deleteDocuments(folderMock, documentList,
			patientMock, stateId);
	// Assert
	//verify(spy, times(1)).logout(stateId);
	assertEquals("Success", actualResponse);
}