### Question:
JBBPFieldArrayInt extends JBBPAbstractArrayField<JBBPFieldInt> implements JBBPNumericArray { @Override public JBBPFieldInt getElementAt(final int index) { final JBBPFieldInt result = new JBBPFieldInt(this.fieldNameInfo, this.array[index]); result.payload = this.payload; return result; } JBBPFieldArrayInt(final JBBPNamedFieldInfo name, final int[] array); int[] getArray(); @Override int size(); @Override JBBPFieldInt getElementAt(final int index); @Override int getAsInt(final int index); @Override long getAsLong(final int index); @Override boolean getAsBool(final int index); @Override Object getValueArrayAsObject(final boolean reverseBits); @Override String getTypeAsString();  }### Answer:
@Test public void testGetElementAt() { final int[] etalon = new int[] {-278349, 12223423, 0, -2, 3}; final Serializable payload = new FakePayload(); test.setPayload(payload); for (int i = 0; i < etalon.length; i++) { final JBBPFieldInt f = test.getElementAt(i); assertSame(payload, f.getPayload()); assertEquals(etalon[i], f.getAsInt()); } }