@Test
public void testNonBlockOrCharFilesAreRejected() throws IOException {

  expected.expect(IllegalArgumentException.class);
  expected.expectMessage("File is neither a char nor block device");
  createVeSlotFile(0);
  when(mockCommandExecutor.getOutput()).thenReturn(
      "0:0:regular file");
  discoverer.getDevicesFromPath(testFolder);
}