### Question:
JBBPFieldArrayByte extends AbstractFieldByteArray<JBBPFieldByte> implements JBBPNumericArray { @Override public Object getValueArrayAsObject(final boolean reverseBits) { final byte[] result; if (reverseBits) { result = this.array.clone(); for (int i = 0; i < result.length; i++) { result[i] = (byte) JBBPFieldByte.reverseBits(result[i]); } } else { result = this.array.clone(); } return result; } JBBPFieldArrayByte(final JBBPNamedFieldInfo name, final byte[] array); byte[] getArray(); @Override int size(); @Override JBBPFieldByte getElementAt(final int index); @Override int getAsInt(final int index); @Override long getAsLong(final int index); @Override Object getValueArrayAsObject(final boolean reverseBits); @Override String getTypeAsString();  }### Answer:
@Test public void testGetValueArrayAsObject() { assertArrayEquals(array, (byte[]) test.getValueArrayAsObject(false)); final byte[] inverted = (byte[]) test.getValueArrayAsObject(true); assertEquals(array.length, inverted.length); for (int i = 0; i < array.length; i++) { assertEquals(JBBPFieldByte.reverseBits(array[i]), inverted[i]); } }