    @Test
    public void testTnefTimeZoneFromInputStream() throws IOException {

        TimeZone tz = null;
        RawInputStream ris = null;
        
        ris = new RawInputStream(intToleByteArray(13), 0, 4);
        tz = TnefTimeZone.getTimeZone(ris);
        Assert.assertFalse(tz == null);
        Assert.assertTrue(tz.getRawOffset() == -28800000);
        Assert.assertTrue(tz.getDSTSavings() == 3600000);
        
        // don't observe daylight saving bit is set!!
        ris = new RawInputStream(new byte[]{13, 0, 0, (byte)128}, 0, 4);
        tz = TnefTimeZone.getTimeZone(ris);
        Assert.assertFalse(tz == null);
        Assert.assertTrue(tz.getRawOffset() == -28800000);
        Assert.assertTrue(tz.getID().equals("Etc/GMT+8"));
    }