XdsbRepositoryAdapter { public RegistryResponse provideAndRegisterDocumentSet( ProvideAndRegisterDocumentSetRequest provideAndRegisterDocumentSetRequest) { return xdsbRepository .provideAndRegisterDocumentSet(provideAndRegisterDocumentSetRequest); } XdsbRepositoryAdapter();  XdsbRepositoryAdapter(XDSRepositorybWebServiceClient xdsbRepository,
			SimpleMarshaller marshaller,
			RetrieveDocumentSetResponseFilter responseFilter,
			XmlTransformer xmlTransformer); RegistryResponse provideAndRegisterDocumentSet(
			ProvideAndRegisterDocumentSetRequest provideAndRegisterDocumentSetRequest); @Deprecated RegistryResponse provideAndRegisterDocumentSet(
			String documentXmlString, String homeCommunityId,
			XdsbDocumentType documentTypeForXdsbMetadata,
			String patientUniqueId, String entryUUID); RegistryResponse provideAndRegisterDocumentSet(
			String documentXmlString,
			XdsbDocumentType documentTypeForXdsbMetadata, Params params); RetrieveDocumentSetResponse retrieveDocumentSet(
			DocumentRequest docRequest); RetrieveDocumentSetResponse retrieveDocumentSet(
			List<DocumentRequest> docRequest); RetrieveDocumentSetResponse retrieveDocumentSet(
			RetrieveDocumentSetRequest request); RetrieveDocumentSetResponse retrieveDocumentSet(
			RetrieveDocumentSetRequest request, String patientId,
			String authorNPI); RetrieveDocumentSetResponse retrieveDocumentSet(
			String documentUniqueId, String repositoryId); static final String EMPTY_XML_DOCUMENT; }
@Test(expected = IllegalArgumentException.class) public void testProvideAndRegisterDocumentSet() throws XdsbRepositoryAdapterException, SimpleMarshallerException { xdsbRepositoryAdapterSpy.provideAndRegisterDocumentSet( DOCUMENT_XML_STRING, HOME_COMMUNITY_ID, XdsbDocumentType.DEPRECATE_PRIVACY_CONSENT, "1", null); }
@Test public void testProvideAndRegisterDocumentSetRequest_Given_ProvideAndRegisterDocumentSetRequest() { final ProvideAndRegisterDocumentSetRequest provideAndRegisterDocumentSetRequest = new ProvideAndRegisterDocumentSetRequest(); final RegistryResponse registryResponse = new RegistryResponse(); when( xdsbRepositoryMock .provideAndRegisterDocumentSet(provideAndRegisterDocumentSetRequest)) .thenReturn(registryResponse); final RegistryResponse actualRegistryResponse = xdsbRepositoryAdapterSpy .provideAndRegisterDocumentSet(provideAndRegisterDocumentSetRequest); assertEquals(registryResponse, actualRegistryResponse); }