JBBPFieldArrayByte extends AbstractFieldByteArray<JBBPFieldByte> implements JBBPNumericArray { @Override public long getAsLong(final int index) { return this.getAsInt(index); } 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 testGetAsLong() { final long[] etalon = new long[] {-1L, 0L, 1L, 2L, 3L}; for (int i = 0; i < etalon.length; i++) { assertEquals(etalon[i], test.getAsLong(i)); } }