@ Override public < T > T Spy ( Class < T > type ) { return createMock ( inferNameFromType ( type ) , type , MockNature . SPY , Collections . < String , Object > emptyMap ( ) ) ; }
Creates a spy with the specified type . The mock name will be the types simple name .