### Question:
MmdTool extends BasicTool { static String[] createOrderedSensorNameArray(Map<String, List<Variable>> sensorMap) { final Set<String> keys = sensorMap.keySet(); final String[] sensorNames = keys.toArray(new String[keys.size()]); Arrays.sort(sensorNames); return sensorNames; } MmdTool(); static void main(String[] args); @Override void initialize();  }### Answer:
@Test public void testCreateOrderedSensorNameArray() { final Map<String, List<Variable>> sensorMap = new HashMap<>(); sensorMap.put("Zenzi", null); sensorMap.put("Franz", null); sensorMap.put("Kevin", null); sensorMap.put("Walpurga", null); final String[] nameArray = MmdTool.createOrderedSensorNameArray(sensorMap); assertEquals(4, nameArray.length); assertEquals("Franz", nameArray[0]); assertEquals("Kevin", nameArray[1]); assertEquals("Walpurga", nameArray[2]); assertEquals("Zenzi", nameArray[3]); }