XdsbRegistryGetterImpl implements XdsbRegistryGetter { @Override public String revisePatientRegistryRecord(String hl7v3Xml, String eId, String eIdDomain) { return getMessage(PRPAIN201302UV02.class, hl7v3Xml, eId, eIdDomain); } @Autowired  XdsbRegistryGetterImpl(
			@Value("${xdsbRegistryEndpointAddress}") String endpointAddress); @Override String addPatientRegistryRecord(String hl7v3Xml, String eId,
			String eIdDomain); @Override String resolvePatientRegistryDuplicates(String hl7v3Xml, String eId,
			String eIdDomain); @Override String revisePatientRegistryRecord(String hl7v3Xml, String eId,
			String eIdDomain); @SuppressWarnings("unchecked") @Override String pidFeed(PixOperation operation, String hl7v3Xml, String eId,
			String eIdDomain); void setMarshaller(SimpleMarshaller marshaller); void setXdsbRegistryWebServiceClient(
			XdsbRegistryWebServiceClient xdsbRegistryWebServiceClient);  }
@Test public void testRevisePatientRegistryRecord() throws Throwable { sut.setMarshaller(marshallerMock); sut.setXdsbRegistryWebServiceClient(xdsbRegistryWebServiceClientMock); PRPAIN201302UV02 requestMock = mock(PRPAIN201302UV02.class); String hl7v3XmlMock = "hl7v3XmlMock"; String eIdMock = "eIdMock"; String eIdDomainMock = "eIdDomainMock"; when( marshallerMock.unmarshalFromXml(PRPAIN201302UV02.class, hl7v3XmlMock)).thenReturn(requestMock); when( xdsbRegistryWebServiceClientMock .revisePatientRegistryRecord(requestMock)).thenReturn( hl7v3XmlMock); doNothing().when(sut).setEidValues(requestMock, eIdMock, eIdDomainMock); String actRetResponse = sut.revisePatientRegistryRecord(hl7v3XmlMock, eIdMock, eIdDomainMock); assertEquals(hl7v3XmlMock, actRetResponse); }