private Object newDeepStubMock ( GenericMetadataSupport returnTypeGenericMetadata , Object parentMock ) { MockCreationSettings parentMockSettings = MockUtil . getMockSettings ( parentMock ) ; return mockitoCore ( ) . mock ( returnTypeGenericMetadata . rawType ( ) , withSettingsUsing ( returnTypeGenericMetadata , parentMockSettings ) ) ; }
Creates a mock using the Generics Metadata .