@Test
public void testCreateNewDirectoryReadOnlyError() throws Exception {

  // Prepare
  AdbFileOperations fileOperations = setupMockDevice();
  // Act
  // Assert
  thrown.expect(ExecutionException.class);
  thrown.expectCause(IsInstanceOf.instanceOf(AdbShellCommandException.class));
  waitForFuture(fileOperations.createNewDirectory("/", "foo-dir"));
}