### Question:
DefaultSingleSignOnManager implements SingleSignOnManager, ResponseHandler { @Override public SSOToken getToken() { return singleSignOnManager.getToken(); } @Builder private  DefaultSingleSignOnManager(@NonNull Context context,
                                       ServerConfig serverConfig,
                                       String accountName,
                                       Encryptor encryptor,
                                       SharedPreferences sharedPreferences); @Override void persist(SSOToken token); @Override void persist(Collection<String> cookies); @Override void clear(); @Override SSOToken getToken(); @Override Collection<String> getCookies(); @Override boolean hasToken(); @Override void revoke(final FRListener<Void> listener);  }### Answer:
@Test public void getTokenWithError() { tokenManager = DefaultSingleSignOnManager.builder() .encryptor(new Encryptor() { @Override public byte[] encrypt(byte[] clearText) { return new byte[0]; } @Override public byte[] decrypt(byte[] encryptedData) { throw new RuntimeException("Dummy"); } @Override public void reset() throws GeneralSecurityException, IOException { } }) .context(context).build(); Token storedToken = tokenManager.getToken(); assertNull(storedToken); }