@Test
public void testGetElementAt() {

  final boolean[] etalon = new boolean[] {true, false, true, true, false};
  final Serializable payload = new FakePayload();
  test.setPayload(payload);
  for (int i = 0; i < etalon.length; i++) {
    final JBBPFieldBoolean f = test.getElementAt(i);
    assertSame(payload, f.getPayload());
    assertEquals(etalon[i], f.getAsBool());
  }
}