*/
@Test
public void testDevHandle()
{
assumeUsbTestsEnabled();
final Transfer transfer = LibUsb.allocTransfer(0);
final DeviceHandle handle = new DeviceHandle();
this.setPointer(handle, 1);
final DeviceHandle handle2 = new DeviceHandle();
this.setPointer(handle2, 2);
assertNull(transfer.devHandle());
transfer.setDevHandle(handle);
assertNotNull(transfer.devHandle());
assertNotSame(handle, transfer.devHandle());
assertNotEquals(handle2, transfer.devHandle());
assertEquals(handle, transfer.devHandle());
transfer.setDevHandle(null);
assertNull(transfer.devHandle());
LibUsb.freeTransfer(transfer);
}