@Test
public void testExtractXdsbDocumentReferenceList_Given_AdhocQueryResponse_ClinicalDocument()
		throws Exception, Throwable {

	// Arrange
	XdsbDocumentReference xdsbDocumentReference1 = new XdsbDocumentReference(
			"41421263015.98411.41414.91230.401390172014139",
			"1.3.6.1.4.1.21367.2010.1.2.1040");
	XdsbDocumentReference xdsbDocumentReference2 = new XdsbDocumentReference(
			"1513150391310.11184.4632.11139.05080551281557",
			"1.3.6.1.4.1.21367.2010.1.2.1040");
	String adhocQueryResponseString = fileReader
			.readFile("adhocQueryResponseClinicalDocument.xml");
	AdhocQueryResponse adhocQueryResponse = marshaller.unmarshalFromXml(
			AdhocQueryResponse.class, adhocQueryResponseString);
	when(marshallerMock.marshal(adhocQueryResponse)).thenReturn(
			adhocQueryResponseString);
	Document doc = documentXmlConverter
			.loadDocument(adhocQueryResponseString);
	when(documentXmlConverterMock.loadDocument(adhocQueryResponseString))
			.thenReturn(doc);
	// Act
	List<XdsbDocumentReference> list = xdsbRegistryAdapterSpy
			.extractXdsbDocumentReferenceList(adhocQueryResponse);
	// Assert
	assertEquals(2, list.size());
	assertTrue(list.contains(xdsbDocumentReference1));
	assertTrue(list.contains(xdsbDocumentReference2));
}