private SimpleProtocol.PolicyFactory exceptionOnSelectThrowingMockFactory() {
        return param -> new RoutingPolicy() {

            @Override
            public void select(RoutingContext context) {
                throw new RuntimeException("69");
            }

            @Override
            public void merge(RoutingContext context) {
            }

            @Override
            public void destroy() {
            }
        };
    }
@author havardpe
@author Simon Thoresen Hult
messagebus/src/test/java/com/yahoo/messagebus/routing/RoutingTestCase.java