@Test
public void shouldLogInitializationError() throws Exception {

    shadowTextToSpeech.getOnInitListener().onInit(TextToSpeech.ERROR);
    assertThat(ShadowLog.getLogs().get(0).tag).isEqualTo(Speakerbox.TAG);
    assertThat(ShadowLog.getLogs().get(0).msg).isEqualTo("Initialization failed.");
}