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

	// Arrange
	XdsbDocumentReference xdsbDocumentReference1 = new XdsbDocumentReference(
			"2931513224.111050.43108.1114145.628015389614413",
			"1.3.6.1.4.1.21367.2010.1.2.1040");
	XdsbDocumentReference xdsbDocumentReference2 = new XdsbDocumentReference(
			"12132124715.97915.410413.87115.61142312711102135",
			"1.3.6.1.4.1.21367.2010.1.2.1040");
	String adhocQueryResponseString = fileReader
			.readFile("adhocQueryResponsePrivacyConsent.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));
}