@Test
public void testGetValueArrayAsObject() {

  final boolean[] noninverted = (boolean[]) test.getValueArrayAsObject(false);
  assertEquals(array.length, noninverted.length);
  for (int i = 0; i < array.length; i++) {
    assertTrue(array[i] == noninverted[i]);
  }
  final boolean[] inverted = (boolean[]) test.getValueArrayAsObject(true);
  assertEquals(array.length, inverted.length);
  for (int i = 0; i < array.length; i++) {
    assertEquals(JBBPFieldBoolean.reverseBits(array[i]) != 0L, inverted[i]);
  }
}