    @Test
    public void testBaseDeliveryIgnoresEndpoint() {

        Delivery delivery = new Delivery() {
            @Override
            public void deliver(Serializer serializer, Object object, Map<String, String> headers) {
            }

            @Override
            public void close() {
            }
        };
        config.delivery = delivery;
        config.sessionDelivery = delivery;

        // ensure log message
        ByteArrayOutputStream baos = new ByteArrayOutputStream();
        System.setErr(new PrintStream(baos));
        config.setEndpoints("http://example.com", "http://sessions.example.com");
        String logMsg = new String(baos.toByteArray());

        assertTrue(logMsg.contains("Delivery is not instance of "
                + "HttpDelivery, cannot set notify endpoint"));
        assertTrue(logMsg.contains("Delivery is not instance of "
                + "HttpDelivery, cannot set sessions endpoint"));
    }