JBBPFieldArrayBoolean extends JBBPAbstractArrayField<JBBPFieldBoolean> implements JBBPNumericArray { public boolean[] getArray() { return this.array.clone(); } JBBPFieldArrayBoolean(final JBBPNamedFieldInfo name, final boolean[] array); boolean[] getArray(); @Override int size(); @Override JBBPFieldBoolean 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();  }
@Test public void testGetArray() { final boolean[] etalon = new boolean[] {true, false, true, true, false}; final boolean[] array = test.getArray(); assertEquals(etalon.length, array.length); for (int i = 0; i < etalon.length; i++) { assertTrue(etalon[i] == array[i]); } }