@Test
public void testFindSubmissionSets() throws JAXBException, XdsbRegistryAdapterException {

	// Arrange
	String submissionSetPatientIdMock = "submissionSetPatientIdMock";
	String submissionSetAuthorPersonMock = "submissionSetAuthorPersonMock";
	AdhocQueryRequest findSubmissionSetsRequestMock = mock(AdhocQueryRequest.class);
	AdhocQueryResponse findSubmissionSetsResponseMock = mock(AdhocQueryResponse.class);
	when(
			xdsbRegistryAdapterSpy.createFindSubmissionSetsRequest(
					submissionSetPatientIdMock,
					submissionSetAuthorPersonMock)).thenReturn(
			findSubmissionSetsRequestMock);
	when(
			xdsbRegistryMock
					.registryStoredQuery(findSubmissionSetsRequestMock))
			.thenReturn(findSubmissionSetsResponseMock);
	// Act
	AdhocQueryResponse actualResponse = xdsbRegistryAdapterSpy
			.findSubmissionSets(submissionSetPatientIdMock,
					submissionSetAuthorPersonMock);
	// Assert
	assertEquals(findSubmissionSetsResponseMock, actualResponse);
}