    @Test
    public void testClear() throws SailException {

        final SailConnection con = cas.getConnection();
        try {
            con.begin();

            assertTrue(hasStatement(con, null, null, null));
            con.clear();
            assertFalse(hasStatement(con, null, null, null));

            con.commit();
        } catch (final Throwable t) {
            con.rollback();
            throw t;
        } finally {
            con.close();
        }
        final SailConnection con2 = sail.getConnection();
        try {
            con2.begin();

            assertFalse(hasStatement(con2, null, null, null, c1));
            assertTrue(hasStatement(con2, null, null, null, c2));

            con2.commit();
        } catch (final Throwable t) {
            con2.rollback();
            throw t;
        } finally {
            con2.close();
        }
    }