create Mock or Spy