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

	// Arrange
	EhrPatientClientDto patientMock = mock(EhrPatientClientDto.class);
	DocumentClientDto oldDocumentMock = mock(DocumentClientDto.class);
	DocumentClientDto documentToAppendMock = mock(DocumentClientDto.class);
	String stateIdMock = "stateIdMock";
	final XdsSrcSubmitRsp responseMock = mock(XdsSrcSubmitRsp.class);
	when(webService.appendDocument(any(XdsSrcApRpReq.class))).thenReturn(
			responseMock);
	// ReflectionTestUtils.setField(sat, "client", webService);
	// Act
	XdsSrcSubmitRsp actualResponse = sat.appendDocument(patientMock,
			oldDocumentMock, documentToAppendMock, stateIdMock);
	// Assert
	assertEquals(responseMock, actualResponse);
	verify(webService, times(1)).appendDocument(any(XdsSrcApRpReq.class));
}