Attempting to test Resume Directive

I am struggling to get this test to work. The first test scenario works, basically I am attempting to assert the write is called properly on db instance. Second and third case does not work. For the second case, exception is never caught by the supervisor. Third case is similar. I asked question on StackOverflow: http://stackoverflow.com/questions/25976345/akka-testing-supervisor-error-handling. Do you have any suggestion or am I on the right track? Thanks!
Now that I think about it, you're right. There is no need for the provider as long as we pass in mocked DatabaseClient which has when().throw() stubbed. We can create the error case without the provider. I wonder why I decided to over-complicate things...