@Test
public void testExtractSubmissionSetUniqueIds() throws Throwable {

	// Arrange
	AdhocQueryResponse responseMock = mock(AdhocQueryResponse.class);
	String responseXmlMock = "responseXmlMock";
	Document documentMock = mock(Document.class);
	NodeList nodeListMock = mock(NodeList.class);
	Node nodeMock = mock(Node.class);
	String nodeValueMock = "nodeValueMock";
	when(marshallerMock.marshal(responseMock)).thenReturn(responseXmlMock);
	when(documentXmlConverterMock.loadDocument(responseXmlMock))
			.thenReturn(documentMock);
	when(documentAccessorMock.getNodeList(eq(documentMock), anyString()))
			.thenReturn(nodeListMock);
	when(nodeListMock.getLength()).thenReturn(1);
	when(nodeListMock.item(0)).thenReturn(nodeMock);
	when(nodeMock.getNodeValue()).thenReturn(nodeValueMock);
	// Act
	List<String> submissionSetUniqueIds = xdsbRegistryAdapterSpy
			.extractSubmissionSetUniqueIds(responseMock);
	// Assert
	assertTrue(submissionSetUniqueIds.contains(nodeValueMock));
}