### Question:
FindObservationsWorkflow extends Workflow { static ObservationFinder.Parameter createFromContextForPrimary(WorkflowContext workflowContext) { final ObservationFinder.Parameter parameter = createWithTimeParameters(workflowContext); parameter.setSearchTimePast(workflowContext.getSearchTimePast()); parameter.setSearchTimeFuture(workflowContext.getSearchTimeFuture()); parameter.setSensorName(workflowContext.getSensorName1()); return parameter; } FindObservationsWorkflow(WorkflowContext workflowContext); @Override void execute(List<SamplingPoint> samplingPoints); @Override List<SamplingPoint> execute();  }### Answer:
@Test public void testCreateFromContextForPrimary() { final WorkflowContext workflowContext = new WorkflowContext(); workflowContext.setStartTime(1); workflowContext.setStopTime(2); workflowContext.setSearchTimePast(3); workflowContext.setSearchTimeFuture(4); workflowContext.setSensorNames("sensi"); final ObservationFinder.Parameter parameter = FindObservationsWorkflow.createFromContextForPrimary(workflowContext); assertNotNull(parameter); assertEquals(1, parameter.getStartTime()); assertEquals(2, parameter.getStopTime()); assertEquals(3, parameter.getSearchTimePast()); assertEquals(4, parameter.getSearchTimeFuture()); assertEquals("sensi", parameter.getSensorName()); }