### Question:
JBBPFieldBit extends JBBPAbstractField implements JBBPNumericField, BitEntity { @Override public long getAsLong() { return getAsInt(); } JBBPFieldBit(final JBBPNamedFieldInfo name, final int value, final JBBPBitNumber bitNumber); static long reverseBits(final byte value, final JBBPBitNumber bits); @Override JBBPBitNumber getBitWidth(); @Override double getAsDouble(); @Override float getAsFloat(); @Override int getAsInt(); @Override long getAsLong(); @Override boolean getAsBool(); @Override long getAsInvertedBitOrder(); @Override String getTypeAsString();  }### Answer:
@Test public void testgetAsLong() { assertEquals(12L, new JBBPFieldBit(new JBBPNamedFieldInfo("test.field", "field", 123), 12, JBBPBitNumber.BITS_6).getAsLong()); assertEquals(-12L & 0xFFL, new JBBPFieldBit(new JBBPNamedFieldInfo("test.field", "field", 123), -12, JBBPBitNumber.BITS_5).getAsLong()); }