Call call = getCall(); String resourceRefURI = "http: Reference resourceRef = getReference(resourceRefURI); call.setResourceRef(resourceRefURI); assertEquals(resourceRef, call.getResourceRef()); String uri = "http: try { call.setContextPath(uri); fail("Call accepts invalid context path. Resource path: '" + resourceRefURI + "' Context path: '" + uri + "'"); } catch (Exception ex) {  }
	public void testInvalidContextPath() throws Exception	{		Call call = getCall();		String resourceRefURI = "http://www.restlet.org/something";		Reference resourceRef = getReference(resourceRefURI);		call.setResourceRef(resourceRefURI);		assertEquals(resourceRef, call.getResourceRef());		String uri = "http://www.restlet.org/cannot-match";		try		{			call.setContextPath(uri);			fail("Call accepts invalid context path. Resource path: '"					+ resourceRefURI + "' Context path: '" + uri + "'");		}		catch (Exception ex)		{			// noop.		}	}