@Test
public void computeSerializedSizeOfComplexMatFile() throws Exception {

    MatFile matFile = MatTestUtil.readMat("arrays/cell.mat");
    long calculatedSize = matFile.getUncompressedSerializedSize();
    rawWriter.writeMat(matFile);
    long actualSize = buffer.position();
    Assert.assertEquals("Uncompressed File", calculatedSize, actualSize);
}