@Test public void testAttributeForKey() throws Exception {

    QTMovie movie = loadMovie(testMovieFile);
    NSObject attribute = movie.attributeForKey(QTMovie.QTMovieTimeScaleAttribute);
    
    assertTrue(attribute.isKindOfClass(ObjCClass.CLASS.classWithName("NSNumber")));
    assertFalse(attribute.isKindOfClass(ObjCClass.CLASS.classWithName("NSString")));
    
    //need to cast 'rococoa style'
    assertEquals(testMovieTimeScale, Rococoa.cast(attribute, NSNumber.class).intValue());
}