@Test
public void testGetValue() {
System.out.println("Test getValue()");
assertArrayEquals(toBytes(0, false, 0), b());
assertArrayEquals(toBytes(0, false, 1), b(0x10));
assertArrayEquals(toBytes(0, false, 15), b(0xf0));
assertArrayEquals(toBytes(0, false, 16), b(0x01, 0x00));
assertArrayEquals(toBytes(0, false, 79), b(0x04, 0xf0));
assertArrayEquals(toBytes(0, false, 113), b(0x07, 0x10));
assertArrayEquals(toBytes(0, false, 26387), b(0x06, 0x71, 0x30));
assertArrayEquals(toBytes(0, false, 1048575), b(0xff, 0xff, 0xf0));
assertArrayEquals(toBytes(7, false, 1048575), b(0xff, 0xff, 0xf7));
assertArrayEquals(toBytes(7, true, 1048575), b(0xff, 0xff, 0xff));
}