@Test(expected = ResolveEndpointFailedException.class)
public void failConnectingToNonExistingRepository() throws Exception {
Endpoint endpoint = context.getEndpoint("cmis://" + CMIS_ENDPOINT_TEST_SERVER
+ "?username=admin&password=admin&repositoryId=NON_EXISTING_ID");
Producer producer = endpoint.createProducer();
Exchange exchange = createExchangeWithInBody("Some content to be store");
exchange.getIn().getHeaders().put(PropertyIds.NAME, "test.txt");
producer.process(exchange);
}