@Test
public void testGetPoliciesCombinedAsPolicySet_Success_No_Wildcard_No_PolicySetId()
		throws Exception {

	// Arrange
	final String policyId = "policyId";
	final String policySet = "policySet";
	final String policySetId = null;
	final boolean policySetValid = true;
	final String policyCombiningAlgId = "policyCombiningAlgId";
	final String wildcard = null;
	final PolicyDto getPoliciesCombinedAsPolicySetResponseDto = new PolicyDto();
	getPoliciesCombinedAsPolicySetResponseDto.setId(policySetId);
	getPoliciesCombinedAsPolicySetResponseDto.setValid(policySetValid);
	getPoliciesCombinedAsPolicySetResponseDto.setPolicy(policySet
			.getBytes(DEFAULT_ENCODING));
	final String uri = API + "/policies/" + policyId + "/combined";
	when(
			policyService.getPoliciesCombinedAsPolicySet(policyId,
					wildcard, policySetId, policyCombiningAlgId))
			.thenReturn(getPoliciesCombinedAsPolicySetResponseDto);
	// Act and Assert
	mockMvc.perform(
			get(uri).contentType(APPLICATION_JSON_UTF8)
					.param("wildcard", wildcard)
					.param("policySetId", policySetId)
					.param("policyCombiningAlgId", policyCombiningAlgId))
			.andExpect(status().isOk())
			.andExpect(content().contentType(APPLICATION_JSON_UTF8))
			.andExpect(jsonPath("$.id", is(policySetId)))
			.andExpect(jsonPath("$.valid", is(policySetValid)))
			.andExpect(
					jsonPath(
							"$.policy",
							is(Base64Utils
									.encodeToString(getPoliciesCombinedAsPolicySetResponseDto
											.getPolicy()))));
	// Assert
	verify(policyService, times(1)).getPoliciesCombinedAsPolicySet(
			policyId, wildcard, policySetId, policyCombiningAlgId);
}