CalvalusFacade extends ProcessFacade { @Override public void stageProduction(String jobId) throws WpsStagingException { calvalusStaging.stageProduction(jobId); } CalvalusFacade(WpsRequestContext wpsRequestContext); @Override LocalProductionStatus orderProductionAsynchronous(Execute executeRequest); @Override LocalProductionStatus orderProductionSynchronous(Execute executeRequest); @Override List<String> getProductResultUrls(String jobId); @Override void stageProduction(String jobId); @Override void observeStagingStatus(String jobId); @Override void generateProductMetadata(String jobId); @Override List<WpsProcess> getProcessors(); @Override WpsProcess getProcessor(ProcessorNameConverter parser); ProductSet[] getProductSets(); Production getProduction(String jobId); String[] getRegionFiles(); String[][] loadRegionDataInfo(String url);  }
@Test public void testStageProduction() throws Exception { whenNew(CalvalusStaging.class).withArguments(any(WpsServerContext.class)).thenReturn(mockCalvalusStaging); ArgumentCaptor<String> jobidCaptor = ArgumentCaptor.forClass(String.class); calvalusFacade = new CalvalusFacade(mockRequestContext); calvalusFacade.stageProduction("job-00"); verify(mockCalvalusStaging).stageProduction(jobidCaptor.capture()); assertThat(jobidCaptor.getValue(), equalTo("job-00")); }