/*
  * |Alpha| < T, debe sumar beta2 a unas posiciones u otras dependiendo de
  * si alpha es negativo o positivo
  *
  * Delta = 1
  */
 @Test
 public void test1a() {
   // para alpha > T en valor absoluto
   System.out.println();
   System.out.println();
   System.out.println("----------------------------");
   System.out.println("|Alpha| < T ---- Delta = 1");
   System.out.println("----------------------------");
   System.out.println("Bytes anteriores a beta2");
   Utils.printArray(array1, 0, 0, m, n);
   delta = 1;
   int alpha = em.getAlpha(matrixM, array1, 0, 0, 1);
   int t = Math.abs(alpha) + 1;
   int g = 5;
   bitCont = 7;
   beta2 = ev.getBeta2(g, t, m, n);
   System.out.println("-------------------");
   System.out.println("Alpha = " + alpha);
   System.out.println("T = " + t);
   System.out.println("G = " + g);
   System.out.println("Beta2 = " + beta2);
   System.out.println("Cadena de bits = 00111111");
   System.out.println("Posicion a insertar = 7 -> Valor del bit = 0");
   System.out.println("-------------------");
   ImagePlus res = em.insertBit(ip, array1, data, bitCont, alpha, beta2, t, delta, 0, 0, m, n);
   int[][] bytesSalida = res.getProcessor().getIntArray();
   System.out.println("Bytes posteriores a beta2");
   Utils.printArray(bytesSalida, 0, 0, m, n);
 }
 @Before
 public void setUp() {
   m = 3;
   n = 3;
   ev = new EmbeddedValidationG8Impl();
   em = new EmbeddingAlgorithmG8Impl();
   array1 = Utils.createRandomByteArray(10, 20);
   array2 = new int[10][20];
   matrixM = ev.getMatrixM(m, n);
   ip = new ImagePlus();
   ImageProcessor ipc = new ByteProcessor(10, 20);
   ipc.setIntArray(array2);
   ip.setProcessor("processor", ipc);
   data = new byte[1];
   data[0] = 63;
 }