### Question:
FcrepoEndpoint extends DefaultEndpoint { @Override public Consumer createConsumer(Processor processor) throws RuntimeCamelException { throw new RuntimeCamelException("Fcrepo Component cannot start a route"); } FcrepoEndpoint(String uri, FcrepoComponent component); @Override Consumer createConsumer(Processor processor); @Override Producer createProducer(); @Override boolean isSingleton(); String getFormat(); void setFormat(String format); String getQuery(); void setQuery(String query); String getPid(); void setPid(String pid); String getResultFormat(); void setResultFormat(String resultFormat); FcrepoConfiguration getFcrepoConfiguration();  }### Answer:
@Test(expected = RuntimeCamelException.class) public void testCreateConsumer() throws RuntimeCamelException { final FcrepoEndpoint testEndpoint = new FcrepoEndpoint(TEST_ENDPOINT_URI, mockContext); Processor mockProcessor = mock(Processor.class); testEndpoint.createConsumer(mockProcessor); }