*/
public class ProxyInstantiationExceptionTest extends ContextTestSupport {
public void testProxyException() {
Endpoint endpoint = context.getEndpoint("mock:foo");
ProxyInstantiationException e = new ProxyInstantiationException(CamelContext.class, endpoint, new IllegalArgumentException("Damn"));
assertNotNull(e);
assertNotNull(e.getMessage());
assertSame(endpoint, e.getEndpoint());
assertEquals(CamelContext.class, e.getType());
assertNotNull(e.getCause());
assertEquals("Damn", e.getCause().getMessage());
}