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