### Question:
UserSyncPollerEntitlementChecker { public boolean isAccountEntitled(String accountId) { return entitlementService.automaticUsersyncPollerEnabled(INTERNAL_ACTOR_CRN, accountId); }  boolean isAccountEntitled(String accountId);  }### Answer:
@Test void accountIsNotEntitled() { when(entitlementService.automaticUsersyncPollerEnabled(anyString(), anyString())).thenReturn(false); assertFalse(underTest.isAccountEntitled(UserSyncTestUtils.ACCOUNT_ID)); }
@Test void accountIsEntitled() { when(entitlementService.automaticUsersyncPollerEnabled(anyString(), anyString())).thenReturn(true); assertTrue(underTest.isAccountEntitled(UserSyncTestUtils.ACCOUNT_ID)); }