### Question:
SyncManager { public void createSyncAccount(User user) { Account account = new Account(user.getUsername(), syncAccountType); boolean success = accountManager.addAccountExplicitly(account, user.getPassword(), null); i("==> Create Sync Account : ", valueOf(success)); }  void kickOff(); void createSyncAccount(User user); void requestSync();  }### Answer:
@Test public void testCreateSyncAccount() throws Exception { assertThat(accountManager.getAccounts().length, is(0)); User user = new User("test_user", "password"); syncManager.createSyncAccount(user); assertThat(accountManager.getAccounts().length, is(1)); Account newAccount = accountManager.getAccounts()[0]; assertThat(newAccount.name, is(user.getUsername())); assertThat(newAccount.type, is(syncAccountType)); }