public class MatrixDataTest {
@Test
public void processMessages() throws Exception {
//verify the buffer get multiplied with 8
MatrixData matrix = new MatrixData(8,8);
assertEquals(64, matrix.getBufferXSize());
assertEquals(64, matrix.getBufferYSize());
//verify the buffer get multiplied with 8
matrix = new MatrixData(16,16);
assertEquals(128, matrix.getBufferXSize());
//verify the buffer get multiplied with 4
matrix = new MatrixData(32,32);
assertEquals(128, matrix.getBufferXSize());
//verify the buffer get multiplied with 2
matrix = new MatrixData(64,64);
assertEquals(128, matrix.getBufferXSize());
//verify the buffer get multiplied with 1
matrix = new MatrixData(512, 512);
assertEquals(512, matrix.getBufferXSize());
matrix = new MatrixData(24,18);
}