@ Beta public < T > T Mock ( @ NamedParams ( { @ NamedParam ( value = "name" , type = String . class ) , @ NamedParam ( value = "additionalInterfaces" , type = List . class ) , @ NamedParam ( value = "defaultResponse" , type = IDefaultResponse . class ) , @ NamedParam ( value = "verified" , type = Boolean . class ) , @ NamedParam ( value = "useObjenesis" , type = Boolean . class ) } ) Map < String , Object > options ) { invalidMockCreation ( ) ; return null ; }
Creates a mock with the specified options whose type and name are inferred from the left - hand side of the enclosing variable assignment .