### Question:
SesameConnection implements RDFConnection { @Override public boolean exists(@Nullable ID sub, @Nullable UID pre, @Nullable NODE obj, @Nullable UID con, boolean includeInferred) { Resource subject = convert(sub); URI predicate = convert(pre); Value object = convert(obj); URI context = convert(con); try { if (context == null) { return connection.hasStatement(subject, predicate, object, includeInferred); } else { return connection .hasStatement(subject, predicate, object, includeInferred, context); } } catch (org.openrdf.repository.RepositoryException e) { throw new RepositoryException(e); } } SesameConnection(SesameRepository repository, RepositoryConnection connection,
            InferenceOptions inference, boolean serializeQueries); @Override RDFBeanTransaction beginTransaction(boolean readOnly, int txTimeout, int isolationLevel); void cleanUpAfterCommit(); void cleanUpAfterRollback(); @Override void clear(); @Override void close(); @Override BID createBNode(); @SuppressWarnings("unchecked") @Override Q createUpdate(UpdateLanguage<D, Q> updateLanguage, D definition); @SuppressWarnings("unchecked") @Override Q createQuery(QueryLanguage<D, Q> queryLanguage, D definition); @Override CloseableIterator<STMT> findStatements(ID sub, UID pre, NODE obj, UID con,
            boolean includeInferred); @Override boolean exists(@Nullable ID sub, @Nullable UID pre, @Nullable NODE obj,
            @Nullable UID con, boolean includeInferred); RepositoryConnection getConnection(); Dialect<Value, Resource, BNode, URI, Literal, Statement> getDialect(); @Override long getNextLocalId(); RDFBeanTransaction getTransaction(); @Override void remove(ID subject, UID predicate, NODE object, UID context); @Override void update(Collection<STMT> removedStatements, Collection<STMT> addedStatements); @Override QueryOptions getQueryOptions(); @Override InferenceOptions getInferenceOptions();  }### Answer:
@Test public void Exists() { UID context = new UID(TEST.NS); assertFalse(conn.exists(null, null, null, context, false)); conn.update(null, Collections.singleton(new STMT(new BID(), RDF.type, RDFS.Class, context))); assertTrue(conn.exists(null, null, null, context, false)); }