@SuppressWarnings("unused")
@Test
public void testGetPolicies_Success_No_Wildcard_Single_Response()
		throws Exception {

	// Arrange
	final String policyId1 = "policyId";
	final boolean valid1 = true;
	final String wildcard = null;
	final String policy1 = "policy1";
	final String policy2 = "policy2";
	final PolicyDto getPolicyResponseDto1 = new PolicyDto();
	getPolicyResponseDto1.setId(policyId1);
	getPolicyResponseDto1.setValid(valid1);
	getPolicyResponseDto1.setPolicy(policy1.getBytes(DEFAULT_ENCODING));
	final PolicyContainerDto getPolicyResponseContainerDto = new PolicyContainerDto(
			getPolicyResponseDto1);
	final String uri = API + "/policies/" + policyId1;
	when(policyService.getPolicies(policyId1, wildcard)).thenReturn(
			getPolicyResponseContainerDto);
	// Act and Assert
	mockMvc.perform(get(uri).contentType(APPLICATION_JSON_UTF8))
			.andExpect(status().isOk())
			.andExpect(content().contentType(APPLICATION_JSON_UTF8))
			.andExpect(
					jsonPath("$.policies",
							hasSize(getPolicyResponseContainerDto
									.getPolicies().size())))
			.andExpect(jsonPath("$.policies[0].id", is(policyId1)))
			.andExpect(jsonPath("$.policies[0].valid", is(valid1)))
			.andExpect(
					jsonPath("$.policies[0].policy", is(Base64Utils
							.encodeToString(getPolicyResponseDto1
									.getPolicy()))));
	// Assert
	verify(policyService, times(1)).getPolicies(policyId1, wildcard);
}