Added mocking support for @safe,@trusted,pure and nothrow methods