add NativeClassMethod test and swing sample