@Test
public void readData() {

    String h212 = "##0136ST=32;CN=2011;PW=123456;MN=LD130133000015;CP=" +
            "&&DataTime=20160824003817;B01-Rtd=36.91;011-Rtd=231.0,011-Flag=N;060-Rtd=1.803,060-Flag=N&&" +
            "4980\r\n";
    T212Mapper mapper = new T212Mapper()
            .enableDefaultParserFeatures()
            .enableDefaultVerifyFeatures();
    try {
        Data data = mapper.readData(h212);
        assertEquals(data.getSt(),"32");
        assertEquals(data.getCn(),"2011");
        assertEquals(data.getPw(),"123456");
        assertEquals(data.getMn(),"LD130133000015");
        CpData cp = data.getCp();
        assertEquals(cp.getDataTime(),"20160824003817");
        Map<String,Pollution> pollutionMap = cp.getPollution();
        Pollution pB01 = pollutionMap.get("B01");
        assertEquals(pB01.getRtd(),new BigDecimal("36.91"));
        Pollution p011 = pollutionMap.get("011");
        assertEquals(p011.getRtd(),new BigDecimal("231.0"));
        assertEquals(p011.getFlag(),"N");
        Pollution p060 = pollutionMap.get("060");
        assertEquals(p060.getRtd(),new BigDecimal("1.803"));
        assertEquals(p060.getFlag(),"N");
    } catch (Exception e) {
        e.printStackTrace();
        assert false;
    }
}