tests for finding a site that is not blacklisted in the repository . concode_field_sep String uri3 concode_elem_sep String uri1 concode_elem_sep BlacklistedSiteRepository mockRepository concode_elem_sep String uri2 concode_elem_sep DefaultBlacklistedSiteService service concode_elem_sep BlacklistedSite site1 concode_elem_sep BlacklistedSite site2 concode_elem_sep Set<BlacklistedSite> blackListedSitesSet concode_field_sep void prepare concode_elem_sep void isBlacklisted_yes
void function ( ) { Mockito . when ( mockRepository . getAll ( ) ) . thenReturn ( blackListedSitesSet ) ; assertFalse ( service . isBlacklisted ( uri3 ) ) ; Mockito . verify ( mockRepository ) . getAll ( ) ; }