XingUser implements Serializable { public boolean isBlacklisted() { return id == null || id.isEmpty(); } @Deprecated  XingUser();  XingUser(String id); @SuppressWarnings("SimplifiableIfStatement") @Override boolean equals(Object o); @Override int hashCode(); @Override String toString(); String id(); @Deprecated XingUser id(String id); String academicTitle(); XingUser academicTitle(String academicTitle); String firstName(); XingUser firstName(String firstName); String lastName(); XingUser lastName(String lastName); String displayName(); XingUser displayName(String displayName); Gender gender(); XingUser gender(Gender gender); String pageName(); XingUser pageName(String pageName); String permalink(); XingUser permalink(String permalink); EmploymentStatus employmentStatus(); XingUser employmentStatus(EmploymentStatus employmentStatus); SafeCalendar birthDate(); XingUser birthDate(SafeCalendar birthDate); String activeEmail(); XingUser activeEmail(String activeEmail); List<PremiumService> premiumServices(); XingUser premiumServices(List<PremiumService> premiumServices); XingUser addPremiumService(PremiumService premiumService); List<Badge> badges(); XingUser badges(List<Badge> badges); XingUser addToBadges(Badge badge); XingUser addAllToBadges(List<Badge> badges); List<String> wants(); XingUser wants(List<String> wants); XingUser addToWants(String want); XingUser addAllToWants(List<String> wants); List<String> haves(); XingUser haves(List<String> haves); XingUser addToHaves(String has); XingUser addAllToHaves(List<String> haves); List<String> topHaves(); XingUser topHaves(List<String> topHaves); XingUser addToTopHaves(String has); XingUser addAllToTopHaves(List<String> topHaves); List<String> interests(); XingUser interests(List<String> interests); XingUser addToInterests(String interest); XingUser addAllToInterests(List<String> interests); List<String> organizations(); XingUser organizations(List<String> organizations); XingUser addToOrganisations(String organization); XingUser addAllToOrganizations(List<String> organizations); Map<Language, LanguageSkill> languages(); XingUser languages(Map<Language, LanguageSkill> languages); LanguageSkill languageSkill(Language language); XingUser addLanguage(Language language, LanguageSkill languageSkill); Address privateAddress(); XingUser privateAddress(Address privateAddress); Address businessAddress(); XingUser businessAddress(Address businessAddress); Map<WebProfile, Set<String>> webProfiles(); XingUser webProfiles(Map<WebProfile, Set<String>> webProfiles); XingUser webProfiles(WebProfile webProfile, Set<String> profiles); XingUser addToWebProfile(WebProfile webProfile, String accountName); XingUser addAllToWebProfile(WebProfile webProfile, Set<String> profiles); EducationalBackground educationBackground(); XingUser educationBackground(EducationalBackground educationBackground); PhotoUrls photoUrls(); XingUser photoUrls(PhotoUrls photoUrls); TimeZone timeZone(); XingUser timeZone(TimeZone timeZone); Map<MessagingAccount, String> messagingAccounts(); XingUser messagingAccounts(Map<MessagingAccount, String> messagingAccounts); XingUser addMessagingAccount(MessagingAccount account, String accountValue); ProfessionalExperience professionalExperience(); XingUser professionalExperience(ProfessionalExperience professionalExperience); LegalInformationPreview legalInformationPreview(); XingUser legalInformationPreview(LegalInformationPreview legalInformationPreview); String primaryInstitutionName(); String primaryOccupationName(); boolean isPremium(); boolean isBlacklisted();  }
@Test public void testIsBlackListed() throws Exception { assertThat(new XingUser(null).isBlacklisted()).isTrue(); assertThat(new XingUser("").isBlacklisted()).isTrue(); assertThat(new XingUser("some_id").isBlacklisted()).isFalse(); }