### Question:
MatchupGenerator extends BasicTool { static String createSensorShortName(String referenceSensorName, String primarySensorName) { return referenceSensorName.substring(0, 3) + "_" + SensorNames.getStandardName(primarySensorName); } MatchupGenerator(); static void main(String[] args); @Override void initialize();  }### Answer:
@Test public void testCreateSensorShortName() { assertEquals("his_avhrr.n13", MatchupGenerator.createSensorShortName("history", "avhrr.n13")); assertEquals("ins_atsr.2", MatchupGenerator.createSensorShortName("insitu", "atsr.2")); }
@Test public void testCreateSensorShortName_throwsOnNonStandardPrimarySensorname() { try { MatchupGenerator.createSensorShortName("history", "avhrr.full_resolution"); fail("IllegalArgumentException expected"); } catch (IllegalArgumentException expected) { } }