@Test
public void testCreateNewFileReadOnlyError() throws Exception {

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