@Test
public void testAssignFromConfig_sensorName2IsNullWhenNotPresentInConfig() {

    final Configuration configuration = new Configuration();
    configuration.put(Configuration.KEY_MMS_SAMPLING_START_TIME, "2008-02-02T00:00:00Z");
    configuration.put(Configuration.KEY_MMS_SAMPLING_STOP_TIME, "2008-02-03T12:00:00Z");
    configuration.put(Configuration.KEY_MMS_SAMPLING_SEARCH_TIME_PAST, "619");
    configuration.put(Configuration.KEY_MMS_SAMPLING_SEARCH_TIME_FUTURE, "719");
    configuration.put(Configuration.KEY_MMS_SAMPLING_SENSOR, "Herrmann");
    configuration.put(Configuration.KEY_MMS_SAMPLING_COUNT, "520");
    configuration.put(Configuration.KEY_MMS_ARCHIVE_ROOT, "/path/archive/root");
    configuration.put(Configuration.KEY_MMS_SAMPLING_GENERATOR, "Yes");
    SamplingPointGenerationTool.assignFromConfig(workflowContext, configuration);
    assertNull(workflowContext.getSensorName2());
}