@Test
public void makePiecesTest()
{

    info.totalBytes = 3;
    info.setNumPieces(3);
    checkPiecesAlignment(info,
            new long[][] {
                    {0, 0},
                    {1, 1},
                    {2, 2}
            });
    /* With different size of last piece */
    info.totalBytes = 1024;
    info.setNumPieces(15);
    checkPiecesAlignment(info,
            new long[][] {
                    {0, 67},
                    {68, 135},
                    {136, 203},
                    {204, 271},
                    {272, 339},
                    {340, 407},
                    {408, 475},
                    {476, 543},
                    {544, 611},
                    {612, 679},
                    {680, 747},
                    {748, 815},
                    {816, 883},
                    {884, 951},
                    {952, 1023},
            });
}