BOOL extends NumberType<Boolean> { public boolean booleanValue() { return intValue() == TRUE; } BOOL();  BOOL(boolean value); void set(BOOL value); void set(boolean b); @Override int intValue(); @Override long longValue(); @Override void set(Boolean value); @Override Boolean get(); boolean booleanValue(); @Override String toString();  }
@Test public final void testTrue() { BOOL bType = new BOOL(true); assertTrue(bType.booleanValue()); }
@Test public final void testFalse() { BOOL bType = new BOOL(false); assertFalse(bType.booleanValue()); }