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