@Test(dependsOnMethods = "testCreateEmail")
public void testAliases() {
assertTrue(emailAccountApi.listAliasesInDomain(testDomain).isEmpty());
EmailAlias alias = emailAccountApi.createAlias("test2@" + testDomain, "test@" + testDomain);
assertEquals(alias.getAlias(), "test2@" + testDomain);
assertEquals(alias.getForwardTo(), "test@" + testDomain);
EmailAlias aliasFromList = Iterables.getOnlyElement(emailAccountApi.listAliasesInDomain(testDomain));
assertEquals(aliasFromList, alias);
EmailOverview overview = emailAccountApi.getOverview();
assertEquals(1, overview.getSummary().getAliases());