final Transfer transfer = LibUsb.allocTransfer(0);
assertEquals(0, transfer.flags());
transfer.setFlags((byte) 1);
assertEquals(1, transfer.flags());
transfer.setFlags((byte) 0);
assertEquals(0, transfer.flags());
LibUsb.freeTransfer(transfer);
}
/**
* Tests the {@link Transfer#setEndpoint(byte)} and