scope {
    var b = s2.Buffer.readFile(__FILE);
    var mdU = b.md5(), szU = b.length();
    assert !b.isCompressed();
    b.compress();
    var mdC = b.md5(), szC = b.length();
    assert mdC !== mdU;
    assert szC < szU;
    assert b.isCompressed();
    b.uncompress();
    assert !b.isCompressed();
    assert szU === b.length();
    assert b.md5() === mdU;
}