### Question:
SpeechPlayerProvider { SpeechPlayer retrieveSpeechPlayer() { return speechPlayers.get(FIRST_PLAYER); } SpeechPlayerProvider(@NonNull Context context, String language,
                              boolean voiceLanguageSupported, String accessToken);   }### Answer:
@Test public void voiceLanguageSupported_returnsMapboxSpeechPlayer() { boolean voiceLanguageSupported = true; SpeechPlayerProvider provider = buildSpeechPlayerProvider(voiceLanguageSupported); SpeechPlayer speechPlayer = provider.retrieveSpeechPlayer(); assertTrue(speechPlayer instanceof MapboxSpeechPlayer); }
@Test public void voiceLanguageNotSupported_returnsAndroidSpeechPlayer() { boolean voiceLanguageNotSupported = false; SpeechPlayerProvider provider = buildSpeechPlayerProvider(voiceLanguageNotSupported); SpeechPlayer speechPlayer = provider.retrieveSpeechPlayer(); assertTrue(speechPlayer instanceof AndroidSpeechPlayer); }