### Question:
PolicyServiceImpl implements PolicyService, Constants { @Override public Collection<String> getAllPolicyIds() { return policyRepository.getAllPolicyIds(); }  @Override Page<Object[]> getPolicies(final int page, final int size, final String searchTerm); @Override Collection<String> getAllPolicyIds(); @Override String updatePolicies(final UpdatePolicyDetails policyDetails); @Override String createPolicies(final CreatePolicyDetails policyDetails); @Override Policy getByPolicyId(String policyId);  }### Answer:
@Test public void getAllPolicyIdsTest() { Collection<String> policyIdDetails = Lists.newArrayList(); policyIdDetails.add("PolicyID123"); policyIdDetails.add("PolicyID234"); policyIdDetails.add("PolicyID345"); when(policyService.getAllPolicyIds()).thenReturn(policyIdDetails); assertThat(policyRepository.getAllPolicyIds().size(), is(3)); }