AdbDeviceFileSystem implements DeviceFileSystem { @NotNull @Override public String getName() { return myDevice.getName(); } AdbDeviceFileSystem(@NotNull IDevice device, @NotNull Executor edtExecutor, @NotNull Executor taskExecutor);  AdbDeviceFileSystem(AdbDeviceFileSystemService service, IDevice device); @NotNull AdbDeviceCapabilities getCapabilities(); @NotNull AdbFileListing getAdbFileListing(); @NotNull AdbFileOperations getAdbFileOperations(); @NotNull AdbFileTransfer getAdbFileTransfer(); @NotNull @Override String getName(); @NotNull @Override DeviceState getDeviceState(); @NotNull @Override ListenableFuture<DeviceFileEntry> getRootDirectory(); @NotNull @Override ListenableFuture<DeviceFileEntry> getEntry(@NotNull String path); @NotNull ListenableFuture<AdbDeviceFileEntry> resolveMountPoint(@NotNull AdbDeviceFileEntry entry);  }
@Test public void test_FileSystem_Has_DeviceName() { assert myFileSystem != null; assert myMockDevice != null; TestDevices.addNexus7Api23Commands(myMockDevice.getShellCommands()); myMockDevice.setName("foo bar"); assertThat(myFileSystem.getName()).isEqualTo(myMockDevice.getName()); }