public static synchronized < T > T createNiceMock ( Class < T > type ) { return doMock ( type , false , new NiceMockStrategy ( ) , null , ( Method [ ] ) null ) ; }
Creates a nice mock object that supports mocking of final and native methods .