@Test
public void thatCorruptionCallbackIsHandled(){

    HaloDatabaseErrorHandler errorHandler =  new HaloDatabaseErrorHandler();
    Corruptible corruptible = new Corruptible() {
        @Override
        public void onCorrupted() {
            mCallbackFlag.flagExecuted();
        }
    };
    errorHandler.setCorruptible(corruptible);
    errorHandler.onCorruption(mHaloDatabase.getDatabase());
    assertThat(mCallbackFlag.isFlagged()).isTrue();
}