@SuppressWarnings("serial")
@Test(expected = URISignatureHandler.URIGenerationFromSignatureException.class)
public void generateCompleteURI_failureURIGeneration_optionalParams() {

	String uriSignature = "http://dr-site.esrin.esa.int/{catalogue}/genesi/ASA_IMS_1P/rdf/?count={count?}&startPage={startPage?}&startIndex={startIndex?}&q={searchTerms?}";
	Map<String, String> parametersMissingCompulsory = new HashMap<String, String>() {
		{
			put("count?", "10");
			put("startPage?", "1");
			put("startIndex?", "1");
			put("searchTerms?", "term1");
		}
	};
	String completeURI = URISignatureHandler.generateCompleteURI(
			uriSignature, parametersMissingCompulsory, false);
	assertEquals(
			"http://dr-site.esrin.esa.int/catalogue/genesi/ASA_IMS_1P/rdf/?count={count?}&startPage={startPage?}&startIndex={startIndex?}&q={searchTerms?}",
			completeURI);
}