AdblockSettings implements Serializable { public List<String> getWhitelistedDomains() { return whitelistedDomains; }  boolean isAdblockEnabled(); void setAdblockEnabled(boolean adblockEnabled); boolean isAcceptableAdsEnabled(); void setAcceptableAdsEnabled(boolean acceptableAdsEnabled); List<Subscription> getSubscriptions(); void setSubscriptions(List<Subscription> subscriptions); List<String> getWhitelistedDomains(); void setWhitelistedDomains(List<String> whitelistedDomains); ConnectionType getAllowedConnectionType(); void setAllowedConnectionType(ConnectionType allowedConnectionType); @Override String toString();  }
@Test public void testWhitelistedDomains() { for (int i = 0; i < 3; i++) { final AdblockSettings settings = buildModel(1, i); assertEquals(i, settings.getWhitelistedDomains().size()); } }