JBBPFieldArrayByte extends AbstractFieldByteArray<JBBPFieldByte> implements JBBPNumericArray { public byte[] getArray() { return this.array.clone(); } 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();  }
@Test public void testGetArray() { assertArrayEquals(new byte[] {(byte) -1, 0, 1, 2, 3}, test.getArray()); }