@Test
public void testListPackages() throws Exception {

  // Prepare
  AdbFileOperations fileOperations = setupMockDevice();
  // Act
  List<String> result = waitForFuture(fileOperations.listPackages());
  // Assert
  assertThat(result).isNotNull();
  assertThat(result).contains("com.example.rpaquay.myapplication");
}