@CheckReturnValue
    public static <T> T mock(Class<T> classToMock) {
        return mock(classToMock, withSettings());
    }
@ CheckReturnValue public static < T > T mock ( Class < T > classToMock ) { return mock ( classToMock , withSettings ( ) ) ; }
Creates mock object of given class or interface.
<p>
See examples in javadoc for {@link Mockito} class

@param classToMock class or interface to mock
@return mock object