### Question:
FindObservationsWorkflow extends Workflow { static ObservationFinder.Parameter createFromContextForSecondary(WorkflowContext workflowContext) { final ObservationFinder.Parameter parameter = createWithTimeParameters(workflowContext); parameter.setSearchTimePast(workflowContext.getSearchTimePast2()); parameter.setSearchTimeFuture(workflowContext.getSearchTimeFuture2 ()); parameter.setSensorName(workflowContext.getSensorName2()); return parameter; } FindObservationsWorkflow(WorkflowContext workflowContext); @Override void execute(List<SamplingPoint> samplingPoints); @Override List<SamplingPoint> execute();  }### Answer:
@Test public void testCreateFromContextForSecondary() { final WorkflowContext workflowContext = new WorkflowContext(); workflowContext.setStartTime(5); workflowContext.setStopTime(6); workflowContext.setSearchTimePast2(7); workflowContext.setSearchTimeFuture2(8); workflowContext.setSensorNames("anything,thermometer"); final ObservationFinder.Parameter parameter = FindObservationsWorkflow.createFromContextForSecondary(workflowContext); assertNotNull(parameter); assertEquals(5, parameter.getStartTime()); assertEquals(6, parameter.getStopTime()); assertEquals(7, parameter.getSearchTimePast()); assertEquals(8, parameter.getSearchTimeFuture()); assertEquals("thermometer", parameter.getSensorName()); }