@Test
public void testAllocateSingleDevice()
    throws ResourceHandlerException, IOException {

  setupTestDirectoryWithScript();
  plugin = new NECVEPlugin(envProvider, defaultSearchDirs, udevUtil);
  Set<Device> available = new HashSet<>();
  Device device = getTestDevice(0);
  available.add(device);
  Set<Device> allocated = plugin.allocateDevices(available, 1, env);
  assertEquals("No. of devices", 1, allocated.size());
  Device allocatedDevice = allocated.iterator().next();
  assertSame("Device", device, allocatedDevice);
}