assertEquals(alias.getForwardTo(), "test@" + testDomain);
EmailAlias aliasFromList = Iterables.getOnlyElement(emailAccountApi.listAliasesInDomain(testDomain));
assertEquals(aliasFromList, alias);
EmailOverview overview = emailAccountApi.getOverview();
assertEquals(1, overview.getSummary().getAliases());
alias = emailAccountApi.updateAlias("test2@" + testDomain, "test1@" + testDomain);
overview = emailAccountApi.getOverview();
assertEquals(1, overview.getSummary().getAliases());
aliasFromList = Iterables.getOnlyElement(emailAccountApi.listAliasesInDomain(testDomain));
assertEquals(aliasFromList, alias);
emailAccountApi.delete("test2@" + testDomain);
overview = emailAccountApi.getOverview();
assertEquals(0, overview.getSummary().getAliases());
}