### Question:
SensorNames { public static String getStandardName(String sensorName) { if (isStandardName(sensorName)) { return sensorName; } if (isOrbitName(sensorName)) { return sensorName.substring(4); } throw new IllegalArgumentException("Sensor name '" + sensorName + "' does not match expected name patterns."); } private  SensorNames(); static String getOrbitName(String sensorName); static String getStandardName(String sensorName); static String getBasename(String sensorName); static String getDimensionNameX(String sensorName); static String getDimensionNameY(String sensorName); static boolean isOrbitName(String sensorName); static boolean isStandardName(String sensorName);  }### Answer:
@Test public void testGetStandardName() throws Exception { String sensorName; sensorName = "atsr.1"; assertSame(sensorName, SensorNames.getStandardName(sensorName)); sensorName = "atsr.2"; assertSame(sensorName, SensorNames.getStandardName(sensorName)); sensorName = "atsr.3"; assertSame(sensorName, SensorNames.getStandardName(sensorName)); assertEquals("atsr.1", SensorNames.getStandardName("orb_atsr.1")); assertEquals("atsr.2", SensorNames.getStandardName("orb_atsr.2")); assertEquals("atsr.3", SensorNames.getStandardName("orb_atsr.3")); assertEquals("avhrr.n10", SensorNames.getStandardName("orb_avhrr.n10")); assertEquals("avhrr.m01", SensorNames.getStandardName("orb_avhrr.m01")); assertEquals("avhrr.m02", SensorNames.getStandardName("orb_avhrr.m02")); assertEquals("avhrr_f.m01", SensorNames.getStandardName("orb_avhrr_f.m01")); assertEquals("avhrr_f.m02", SensorNames.getStandardName("orb_avhrr_f.m02")); assertEquals("amsr2", SensorNames.getStandardName("orb_amsr2")); try { SensorNames.getStandardName("aai"); fail(); } catch (IllegalArgumentException expected) { } try { SensorNames.getStandardName("seaice"); fail(); } catch (IllegalArgumentException expected) { } }