### Question:
JBBPFieldArrayByte extends AbstractFieldByteArray<JBBPFieldByte> implements JBBPNumericArray { @Override public JBBPFieldByte getElementAt(final int index) { final JBBPFieldByte result = new JBBPFieldByte(this.fieldNameInfo, this.array[index]); result.payload = this.payload; 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 testGetElementAt() { final int[] etalon = new int[] {-1, 0, 1, 2, 3}; final Serializable payload = new FakePayload(); test.setPayload(payload); for (int i = 0; i < etalon.length; i++) { final JBBPFieldByte f = test.getElementAt(i); assertSame(payload, f.getPayload()); assertEquals(etalon[i], f.getAsInt()); } }