### Question:
JBBPFieldArrayUByte extends AbstractFieldByteArray<JBBPFieldUByte> { @Override public int getAsInt(final int index) { return this.array[index] & 0xFF; } JBBPFieldArrayUByte(final JBBPNamedFieldInfo name, final byte[] array); byte[] getArray(); @Override int size(); @Override JBBPFieldUByte getElementAt(final int index); @Override int getAsInt(final int index); @Override Object getValueArrayAsObject(final boolean reverseBits); @Override String getTypeAsString();  }### Answer:
@Test public void testGetAsInt() { final int[] etalon = new int[] {255, 0, 1, 2, 3}; for (int i = 0; i < etalon.length; i++) { assertEquals(etalon[i], test.getAsInt(i)); } }
@Test public void testIterable() { final int[] etalon = new int[] {255, 0, 1, 2, 3}; int index = 0; for (final JBBPFieldUByte f : test) { assertEquals(etalon[index++], f.getAsInt()); } }