### Question:
MmdTool extends BasicTool { static MatchupQueryParameter createMatchupQueryParameter(Configuration config) { final MatchupQueryParameter parameter = new MatchupQueryParameter(); parameter.setStartDate(getStartTime(config)); parameter.setStopDate(getStopTime(config)); parameter.setCondition(getCondition(config)); parameter.setPattern(getPattern(config)); return parameter; } MmdTool(); static void main(String[] args); @Override void initialize();  }### Answer:
@Test public void testCreateMatchupQueryParameter() { final Configuration config = new Configuration(); config.put(Configuration.KEY_MMS_MMD_TARGET_START_TIME, "1993-03-04T00:00:00Z"); config.put(Configuration.KEY_MMS_MMD_TARGET_STOP_TIME, "1994-05-05T00:00:00Z"); config.put("mms.pattern.papa", "100"); config.put("mms.pattern.mama", "008"); config.put(Configuration.KEY_MMS_MMD_SENSORS, "papa,mama"); config.put("mms.target.condition", "another_condition"); final MatchupQueryParameter parameter = MmdTool.createMatchupQueryParameter(config); assertNotNull(parameter); final Date startDate = parameter.getStartDate(); assertCorrectDate(1993, 3, 4, startDate); final Date stopDate = parameter.getStopDate(); assertCorrectDate(1994, 5, 5, stopDate); assertEquals("another_condition", parameter.getCondition()); assertEquals(264, parameter.getPattern()); }