* This tests the case where the endpoint is configured correctly and we expect a successful HttpBasic authentication
* @throws Exception
*/
@Test
public void testSuccessHttpBasic() throws Exception{
AuthEndpoint endpoint = (AuthEndpoint) component.createEndpoint("blah?apiId=1234&basic=true");
AuthProducer producer = (AuthProducer) endpoint.createProducer();
Exchange exchange = new DefaultExchange(context);
// Anything will work for the mock executor... it just has to be set
exchange.getIn().setHeader(AuthHttpHeaders.Authorization.toString(), "blarg");
producer.process(exchange);