### Question:
SensorNames { public static boolean isStandardName(String sensorName) { return sensorName.matches("(atsr\\.[1-3])|(avhrr(_f)?\\.[mn]([0-9]){2})|(amsr(2|e))"); } 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 testIsStandardName() throws Exception { assertTrue(SensorNames.isStandardName("atsr.1")); assertTrue(SensorNames.isStandardName("atsr.2")); assertTrue(SensorNames.isStandardName("atsr.3")); assertTrue(SensorNames.isStandardName("avhrr.n10")); assertTrue(SensorNames.isStandardName("avhrr.n11")); assertTrue(SensorNames.isStandardName("avhrr.n12")); assertTrue(SensorNames.isStandardName("avhrr.n13")); assertTrue(SensorNames.isStandardName("avhrr.n14")); assertTrue(SensorNames.isStandardName("avhrr.n15")); assertTrue(SensorNames.isStandardName("avhrr.n16")); assertTrue(SensorNames.isStandardName("avhrr.n17")); assertTrue(SensorNames.isStandardName("avhrr.n18")); assertTrue(SensorNames.isStandardName("avhrr.n19")); assertTrue(SensorNames.isStandardName("avhrr.m01")); assertTrue(SensorNames.isStandardName("avhrr.m02")); assertTrue(SensorNames.isStandardName("avhrr_f.m01")); assertTrue(SensorNames.isStandardName("avhrr_f.m02")); assertFalse(SensorNames.isStandardName("avhrr.m01f")); assertFalse(SensorNames.isStandardName("avhrr.m02f")); assertTrue(SensorNames.isStandardName("amsr2")); assertTrue(SensorNames.isStandardName("amsre")); assertFalse(SensorNames.isStandardName("orb_atsr.1")); assertFalse(SensorNames.isStandardName("orb_atsr.2")); assertFalse(SensorNames.isStandardName("orb_atsr.3")); assertFalse(SensorNames.isStandardName("orb_avhrr.n10")); assertFalse(SensorNames.isStandardName("orb_avhrr.n11")); assertFalse(SensorNames.isStandardName("orb_avhrr.n12")); assertFalse(SensorNames.isStandardName("orb_avhrr.n13")); assertFalse(SensorNames.isStandardName("orb_avhrr.n14")); assertFalse(SensorNames.isStandardName("orb_avhrr.n15")); assertFalse(SensorNames.isStandardName("orb_avhrr.n16")); assertFalse(SensorNames.isStandardName("orb_avhrr.n17")); assertFalse(SensorNames.isStandardName("orb_avhrr.n18")); assertFalse(SensorNames.isStandardName("orb_avhrr.n19")); assertFalse(SensorNames.isStandardName("orb_avhrr.m01")); assertFalse(SensorNames.isStandardName("orb_avhrr.m02")); assertFalse(SensorNames.isStandardName("orb_avhrr_f.m01")); assertFalse(SensorNames.isStandardName("orb_avhrr_f.m02")); assertFalse(SensorNames.isStandardName("orb_amsr2")); assertFalse(SensorNames.isStandardName("aai")); assertFalse(SensorNames.isStandardName("seaice")); }