### Question:
JBBPFieldArrayLong extends JBBPAbstractArrayField<JBBPFieldLong> implements JBBPNumericArray { @Override public boolean getAsBool(final int index) { return this.array[index] != 0L; } JBBPFieldArrayLong(final JBBPNamedFieldInfo name, final long[] array); long[] getArray(); @Override int size(); @Override JBBPFieldLong 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 testGetAsBool() { final boolean[] etalon = new boolean[] {true, true, false, true, true}; for (int i = 0; i < etalon.length; i++) { assertEquals(etalon[i], test.getAsBool(i)); } }