PMMLEditorMarshallerService implements PMMLEditorMarshallerApi { @Override public PMMLDocumentData getPMMLDocumentData(String xmlContent) { return getWrapper().getPMMLDocumentData(xmlContent); }  @Override PMMLDocumentData getPMMLDocumentData(String xmlContent);  }
@Test public void getPMMLDocument() { final String xmlContent = "<PMML>content</PMML>"; when(wrapperMock.getPMMLDocumentData(xmlContent)).thenReturn(new PMMLDocumentData()); pmmlEditorMarshallerServiceSpy.getPMMLDocumentData(xmlContent); verify(wrapperMock, times(1)).getPMMLDocumentData(xmlContent); }