createArray

This method should be used when you need to stub out creating NativeArrays in unit tests.