### Question:
EntitlementService { public List<String> getEntitlements(String actorCrn, String accountId) { return getAccount(actorCrn, accountId).getEntitlementsList() .stream() .map(e -> e.getEntitlementName().toUpperCase()) .collect(Collectors.toList()); }  boolean scalingServiceEnabled(String actorCrn, String accountId, String entitledFor); boolean azureEnabled(String actorCrn, String accountId); boolean gcpEnabled(String actorCrn, String accountId); boolean baseImageEnabled(String actorCrn, String accountId); boolean automaticUsersyncPollerEnabled(String actorCrn, String accountId); boolean freeIpaHaEnabled(String actorCrn, String accountID); boolean freeIpaHaRepairEnabled(String actorCrn, String accountID); boolean freeIpaHealthCheckEnabled(String actorCrn, String accountID); boolean internalTenant(String actorCrn, String accountId); boolean localDevelopment(String actorCrn, String accountId); boolean fmsClusterProxyEnabled(String actorCrn, String accountId); boolean cloudStorageValidationEnabled(String actorCrn, String accountId); boolean razEnabled(String actorCrn, String accountId); boolean mediumDutySdxEnabled(String actorCrn, String accountId); boolean runtimeUpgradeEnabled(String actorCrn, String accountId); boolean freeIpaDlEbsEncryptionEnabled(String actorCrn, String accountId); boolean azureSingleResourceGroupDeploymentEnabled(String actorCrn, String accountId); boolean azureSingleResourceGroupDedicatedStorageAccountEnabled(String actorCrn, String accountId); boolean fastEbsEncryptionEnabled(String actorCrn, String accountId); boolean cloudIdentityMappingEnabled(String actorCrn, String accountId); boolean isInternalRepositoryForUpgradeAllowed(String actorCrn, String accountId); boolean umsUserSyncModelGenerationEnabled(String actorCrn, String accountId); boolean sdxHbaseCloudStorageEnabled(String actorCrn, String accountId); List<String> getEntitlements(String actorCrn, String accountId); static final String DATAHUB_FLOW_SCALING; static final String DATAHUB_STREAMING_SCALING; static final String DATAHUB_DEFAULT_SCALING; }### Answer:
@Test void getEntitlementsTest() { setUpUmsClient(ACCOUNT_ENTITLEMENTS_FOO_BAR); assertThat(underTest.getEntitlements(ACTOR_CRN, ACCOUNT_ID)).containsExactly(ENTITLEMENT_FOO, ENTITLEMENT_BAR); }