title: Is there a per-test non-specific mock reset pattern using Scala+PlaySpec+Mockito?
body: <p>I'm writing a unit test suite for a Scala Play application and I'm wondering if there's anything analogous to java's</p>
  
  <pre><code>@Mock
  private Foo foo;
  
  @Autowired/InjectMocks
  private Bar fixture;
  
  @BeforeMethod
  public void setUp() {
    MockitoAnnotations.initMocks(this);
  }
  </code></pre>
  
  <p>For auto-mocking the annotated class and resetting it after every test</p>
  
  <p>Currently I'm settling for</p>
  
  <pre><code>TestClass extends PlaySpec with BeforeAndAfterEach
  
  private val foo = mock[Foo]
  
  override def fakeApplication(): Application = 
    new GuiceApplicationBuilder().overrides(bind[Foo].toInstance(foo)).build
  
  override protected def beforeEach(): Unit = {
    reset(foo)
  }
  </code></pre>
  
  <p>A cursory attempt at using the java annotations in the scala test was not successful. My current approach <em>works</em>, I just want to make sure there's not a nicer one.</p>