@Test
public void whenCompressionIsSetGzipShouldReturnHeaderWithGzipCompression() {

    ByteBuffer b = ByteBuffer.allocate(4);
    b.putInt(0x01000000);
    KeePassHeader header = createHeaderAndSetValue(3, b.array());
    Assert.assertEquals(CompressionAlgorithm.Gzip, header.getCompression());
}