public static void copy(int[] src, long[] dest, int length) {
    for (int i = 0; i < length; i++) {
      dest[i] = src[i];
    }
  }
@Test
  public void testCopyFromFloatArray() {
    ArrayCopyUtils.copy(FLOAT_ARRAY, INT_BUFFER, COPY_LENGTH);
    ArrayCopyUtils.copy(FLOAT_ARRAY, LONG_BUFFER, COPY_LENGTH);
    ArrayCopyUtils.copy(FLOAT_ARRAY, DOUBLE_BUFFER, COPY_LENGTH);
    ArrayCopyUtils.copy(FLOAT_ARRAY, STRING_BUFFER, COPY_LENGTH);
    for (int i = 0; i < COPY_LENGTH; i++) {
      Assert.assertEquals(INT_BUFFER[i], (int) FLOAT_ARRAY[i]);
      Assert.assertEquals(LONG_BUFFER[i], (long) FLOAT_ARRAY[i]);
      Assert.assertEquals(DOUBLE_BUFFER[i], (double) FLOAT_ARRAY[i]);
      Assert.assertEquals(STRING_BUFFER[i], Float.toString(FLOAT_ARRAY[i]));
    }
  }