@Test
public void isValidUsbDeviceCandidate_is_valid() {

    final File mockFile = Mockito.mock(File.class);
    Mockito.when(mockFile.exists()).thenReturn(true);
    Mockito.when(mockFile.isDirectory()).thenReturn(true);
    Mockito.when(mockFile.getName()).thenReturn("foo");
    assertTrue(cut.isValidUsbDeviceCandidate(mockFile));
}