@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());
}