@Test
public void testExtractWMOID() {

    DataFile dataFile = createDataFile("/usr/local/data/test/insitu_0_WMOID_71569_20030117_20030131.nc");
    assertEquals("71569", Insitu_CCI_2_Accessor.extractWMOID(dataFile));
    dataFile = createDataFile("C:\\Toms\\Data\\SST\\insitu_5_WMOID_7900016_20030110_20030130.nc");
    assertEquals("7900016", Insitu_CCI_2_Accessor.extractWMOID(dataFile));
    dataFile = createDataFile("insitu_4_WMOID_TGT_C2_03_20031224_20031231.nc");
    assertEquals("TGT_C2_03", Insitu_CCI_2_Accessor.extractWMOID(dataFile));
    dataFile = createDataFile("insitu_4_WMOID_99999999_20031224_20031231.nc");
    assertEquals("99999999", Insitu_CCI_2_Accessor.extractWMOID(dataFile));
    dataFile = createDataFile("C:\\Toms\\Data\\SST\\contains_no_WMO_ID.nc");
    assertNull(Insitu_CCI_2_Accessor.extractWMOID(dataFile));
    dataFile = createDataFile("C:\\Toms\\Data\\SST\\WMOID_does_not_match_any_numerical_pattern.nc");
    assertNull(Insitu_CCI_2_Accessor.extractWMOID(dataFile));
}