@Test public void testError() {

    File file = new File("NOSUCH");
    ObjCObjectByReference errorReference = new ObjCObjectByReference();
Movie movie = QTMovie.movieWithFile_error(file, errorReference);
    assertNull(movie);
    NSError error = errorReference.getValueAs(NSError.class);
sertEquals(-2000, error.code().intValue());
}