jbi.setFlowName("st"); jbi.setEmbedded(true); jbi.init();
    public void testInsertUpdate() throws Exception {        jbi.setFlowName("st");        jbi.setEmbedded(true);        jbi.init();        jbi.start();        SenderComponent sender = new SenderComponent();        ReceiverComponent receiver = new ReceiverComponent();        jbi.activateComponent(sender, "sender");        jbi.activateComponent(receiver, "receiver");                JdbcAuditor auditor = new JdbcAuditor();        auditor.setContainer(jbi);        auditor.setDataSource(dataSource);        auditor.afterPropertiesSet();                InOnly inonly = sender.createInOnlyExchange(ReceiverComponent.SERVICE, null, null);        inonly.setInMessage(inonly.createMessage());        inonly.getInMessage().setContent(new StringSource("<hello>world</hello>"));        sender.send(inonly);                int nbMessages = auditor.getExchangeCount();        assertEquals(1, nbMessages);        MessageExchange[] exchanges = auditor.getExchanges(0, 1);        assertNotNull(exchanges);        assertEquals(1, exchanges.length);        assertEquals(ExchangeStatus.DONE, exchanges[0].getStatus());                auditor.resendExchange(exchanges[0]);        nbMessages = auditor.getExchangeCount();        assertEquals(2, nbMessages);        MessageExchange exchange = auditor.getExchange(1);        assertNotNull(exchange);        assertEquals(ExchangeStatus.DONE, exchange.getStatus());                /*        PreparedStatement st = connection.prepareStatement("SELECT EXCHANGE FROM SM_AUDIT WHERE ID = ?");        try {            st.setString(1, inonly.getExchangeId());            ResultSet rs = st.executeQuery();            assertTrue(rs.next());            byte[] data = rs.getBytes(1);            ObjectInputStream ois = new ObjectInputStream(new ByteArrayInputStream(data));            Object obj = ois.readObject();            assertNotNull(obj);            assertTrue(obj instanceof ExchangePacket);            assertEquals(ExchangeStatus.DONE, ((ExchangePacket) obj).getStatus());        } finally {            st.close();        }        */            }