@Test
public void testGetElementAt() {

  final int[] etalon = new int[] {-27834 & 0xFFFF, 23423, 0, -2 & 0xFFFF, 3};
  final Serializable payload = new FakePayload();
  test.setPayload(payload);
  for (int i = 0; i < etalon.length; i++) {
    final JBBPFieldUShort f = test.getElementAt(i);
    assertSame(payload, f.getPayload());
    assertEquals(etalon[i], f.getAsInt());
  }
}