@Test
public void readVariableULongTest() throws Exception {

    assertEquals(1, readVariableULong(new byte[]{1}).longValue());
    assertEquals(0xf1, readVariableULong(new byte[]{(byte) 0xf1}).longValue());
    assertTrue(readVariableULong(new byte[]{(byte) 0xf1}) > 0);
    assertEquals(0x0101, readVariableULong(new byte[]{1, 1}).longValue());
    assertEquals(0x010101, readVariableULong(new byte[]{1, 1, 1}).longValue());
    assertEquals(0x01010101, readVariableULong(new byte[]{1, 1, 1, 1}).longValue());
    assertEquals(0xff0101, readVariableULong(new byte[]{((byte) 0xff), 1, 1}).longValue());
    assertNull(readVariableULong(null));
}